Commit ce0d2f46 authored by Jeromy's avatar Jeromy Committed by Juan Batiz-Benet

defer tock.Stop()

parent 2f934e8c
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment