mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
fixed issue when miner is not stopping af stop command
This commit is contained in:
@@ -67,6 +67,12 @@ out:
|
||||
go self.mine(block, self.quitCurrentOp)
|
||||
self.mu.Unlock()
|
||||
case <-self.quit:
|
||||
self.mu.Lock()
|
||||
if self.quitCurrentOp != nil {
|
||||
close(self.quitCurrentOp)
|
||||
self.quitCurrentOp = nil
|
||||
}
|
||||
self.mu.Unlock()
|
||||
break out
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user