From 3ea9868b656077c38af5ea8590761c3218ce558e Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 21 May 2015 18:14:32 +0200 Subject: [PATCH] miner: on downloader.Done/Fail stop immediately. Ignore pending evs --- miner/miner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miner/miner.go b/miner/miner.go index c9427f3023..4e99245f8c 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -65,6 +65,8 @@ func (self *Miner) update() { } // unsubscribe. we're only interested in this event once events.Unsubscribe() + // stop immediately and ignore all further pending events + break } }