Skip to content

Commit

Permalink
Fix stop pending producer on multiple mode requests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 14, 2024
1 parent a51156c commit d9fb734
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/streams/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ func (s *Stream) RemoveProducer(prod core.Producer) {
}

func (s *Stream) stopProducers() {
if s.pending.Load() > 0 {
log.Trace().Msg("[streams] skip stop pending producer")
return
}

s.mu.Lock()
producers:
for _, producer := range s.producers {
Expand Down

0 comments on commit d9fb734

Please sign in to comment.