miner: on downloader.Done/Fail stop immediately. Ignore pending evs

This commit is contained in:
obscuren committed 2015-05-21 18:14:32 +02:00
1 parent 4600ecb5c7
commit 3ea9868b65
1 file changed
+2
+2
View File
@@ -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
}
}