From 479cefadfbea794b488c0baf85f1bc8bfae3c5a5 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Tue, 19 May 2015 15:48:12 -0700 Subject: [PATCH] defer tock.Stop() --- exchange/bitswap/wantmanager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exchange/bitswap/wantmanager.go b/exchange/bitswap/wantmanager.go index bd562922799..78b3b577b08 100644 --- a/exchange/bitswap/wantmanager.go +++ b/exchange/bitswap/wantmanager.go @@ -178,6 +178,7 @@ func (pm *WantManager) Disconnected(p peer.ID) { // TODO: use goprocess here once i trust it func (pm *WantManager) Run() { tock := time.NewTicker(rebroadcastDelay.Get()) + defer tock.Stop() for { select { case entries := <-pm.incoming: