diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-18 19:50:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-18 19:50:15 +0800 |
commit | 2762ec22d0693b406ead2f0c07b62e9b66d395e4 (patch) | |
tree | 2c1ec636126d7546a4d68c3a4b04b0848e30b91d /ethminer/miner.go | |
parent | cd9b344506ee2daeb7a6248b2cdb5e7e69db7e79 (diff) | |
download | go-tangerine-2762ec22d0693b406ead2f0c07b62e9b66d395e4.tar go-tangerine-2762ec22d0693b406ead2f0c07b62e9b66d395e4.tar.gz go-tangerine-2762ec22d0693b406ead2f0c07b62e9b66d395e4.tar.bz2 go-tangerine-2762ec22d0693b406ead2f0c07b62e9b66d395e4.tar.lz go-tangerine-2762ec22d0693b406ead2f0c07b62e9b66d395e4.tar.xz go-tangerine-2762ec22d0693b406ead2f0c07b62e9b66d395e4.tar.zst go-tangerine-2762ec22d0693b406ead2f0c07b62e9b66d395e4.zip |
Fixed miner and logger
Diffstat (limited to 'ethminer/miner.go')
-rw-r--r-- | ethminer/miner.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go index fd14571cd..a50b3712f 100644 --- a/ethminer/miner.go +++ b/ethminer/miner.go @@ -135,10 +135,9 @@ out: func (self *Miner) Stop() { logger.Infoln("Stopping...") - self.quitChan <- true - close(self.powQuitChan) - close(self.quitChan) + self.quitChan <- true + self.powQuitChan <- ethutil.React{} self.ethereum.Reactor().Post("miner:stop", self) } |