Commit 60561cdc authored by Bas van Kervel's avatar Bas van Kervel

fixed issue when miner is not stopping af stop command

parent 77787403
...@@ -67,6 +67,12 @@ out: ...@@ -67,6 +67,12 @@ out:
go self.mine(block, self.quitCurrentOp) go self.mine(block, self.quitCurrentOp)
self.mu.Unlock() self.mu.Unlock()
case <-self.quit: case <-self.quit:
self.mu.Lock()
if self.quitCurrentOp != nil {
close(self.quitCurrentOp)
self.quitCurrentOp = nil
}
self.mu.Unlock()
break out break out
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment