mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 19:40:36 +00:00
fixed issue when miner is not stopping af stop command
This commit is contained in:
parent
7778740315
commit
60561cdca2
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user