aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-22 00:14:32 +0800
committerobscuren <geffobscura@gmail.com>2015-05-22 00:14:32 +0800
commit3ea9868b656077c38af5ea8590761c3218ce558e (patch)
tree05471c7e1862733478b08e18bd7ed9419f7f7297 /miner
parent4600ecb5c71e1f311c1c31e8d596a2a43ce6a51b (diff)
downloaddexon-3ea9868b656077c38af5ea8590761c3218ce558e.tar
dexon-3ea9868b656077c38af5ea8590761c3218ce558e.tar.gz
dexon-3ea9868b656077c38af5ea8590761c3218ce558e.tar.bz2
dexon-3ea9868b656077c38af5ea8590761c3218ce558e.tar.lz
dexon-3ea9868b656077c38af5ea8590761c3218ce558e.tar.xz
dexon-3ea9868b656077c38af5ea8590761c3218ce558e.tar.zst
dexon-3ea9868b656077c38af5ea8590761c3218ce558e.zip
miner: on downloader.Done/Fail stop immediately. Ignore pending evs
Diffstat (limited to 'miner')
-rw-r--r--miner/miner.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/miner/miner.go b/miner/miner.go
index c9427f302..4e99245f8 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
}
}