diff --git a/miner/miner.go b/miner/miner.go index 4e99245f8c..e735f565e6 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -62,11 +62,12 @@ func (self *Miner) update() { if shouldStart { self.Start(self.coinbase, self.threads) } + + // unsubscribe. we're only interested in this event once + events.Unsubscribe() + // stop immediately and ignore all further pending events + break } - // unsubscribe. we're only interested in this event once - events.Unsubscribe() - // stop immediately and ignore all further pending events - break } }