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

This commit is contained in:
obscuren 2015-05-21 18:14:32 +02:00
parent 4600ecb5c7
commit 3ea9868b65
1 changed files with 2 additions and 0 deletions

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
}
}