Browse Source

Merge pull request #1036 from daedric/master

Avoid Ticker leak in case of slow consumers
Evan Huus 7 years ago
parent
commit
38f3411a86
1 changed files with 1 additions and 0 deletions
  1. 1 0
      consumer.go

+ 1 - 0
consumer.go

@@ -461,6 +461,7 @@ feederLoop:
 						child.messages <- msg
 					}
 					child.broker.input <- child
+					expiryTicker.Stop()
 					continue feederLoop
 				} else {
 					// current message has not been sent, return to select