Browse Source

Avoid Ticker leak in case of slow consumer

Thomas Sanchez 7 years ago
parent
commit
cd0485eacc
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