Ver Fonte

Avoid Ticker leak in case of slow consumer

Thomas Sanchez há 8 anos atrás
pai
commit
cd0485eacc
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      consumer.go

+ 1 - 0
consumer.go

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