fixed issue when miner is not stopping af stop command

This commit is contained in:
Bas van Kervel 2015-05-18 16:09:01 +02:00
parent 7778740315
commit 60561cdca2

@ -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
} }
} }