@cryptotaxi247 / kubo / commits / ce0d2f46d

defer tock.Stop()

Jeromy committed May 19, 2015 at 15:48 UTC ce0d2f46d6ff2c9f03c5cac8358812dd532afacf
1 file changed +1
exchange/bitswap/wantmanager.go
+1
@@ -178,6 +178,7 @@ func (pm *WantManager) Disconnected(p peer.ID) {
178 // TODO: use goprocess here once i trust it
179 func (pm *WantManager) Run() {
180 tock := time.NewTicker(rebroadcastDelay.Get())
181 + defer tock.Stop()
182 for {
183 select {
184 case entries := <-pm.incoming: