defer tock.Stop()

This commit is contained in:
Jeromy 2015-05-19 15:48:12 -07:00 committed by Juan Batiz-Benet
parent 2f934e8c58
commit ce0d2f46d6

View File

@ -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: