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 | |
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
-rw-r--r-- | ethlog/loggers.go | 2 | ||||
-rw-r--r-- | ethminer/miner.go | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/ethlog/loggers.go b/ethlog/loggers.go index ec481edd8..50de213b3 100644 --- a/ethlog/loggers.go +++ b/ethlog/loggers.go @@ -96,7 +96,7 @@ func AddLogSystem(logSystem LogSystem) { mutex.Lock() defer mutex.Unlock() if logSystems == nil { - logMessages = make(chan *logMessage) + logMessages = make(chan *logMessage, 10) quit = make(chan bool, 1) go start() } 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) } |