Consistently stop tickers (#593)
This commit is contained in:
@@ -366,6 +366,7 @@ func (s *StreamAllocator) processEvents() {
|
||||
|
||||
func (s *StreamAllocator) ping() {
|
||||
ticker := time.NewTicker(time.Second)
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
<-ticker.C
|
||||
|
||||
Reference in New Issue
Block a user