Fix stop pending producer on multiple mode requests
This commit is contained in:
@@ -88,6 +88,11 @@ func (s *Stream) RemoveProducer(prod core.Producer) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Stream) stopProducers() {
|
func (s *Stream) stopProducers() {
|
||||||
|
if s.pending.Load() > 0 {
|
||||||
|
log.Trace().Msg("[streams] skip stop pending producer")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
producers:
|
producers:
|
||||||
for _, producer := range s.producers {
|
for _, producer := range s.producers {
|
||||||
|
|||||||
Reference in New Issue
Block a user