aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ethlog/loggers.go2
-rw-r--r--ethminer/miner.go5
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)
}