mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-02 17:43:48 +00:00
miner: on downloader.Done/Fail stop immediately. Ignore pending evs
This commit is contained in:
parent
4600ecb5c7
commit
3ea9868b65
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue