good morning!!!!

Skip to content
Snippets Groups Projects
Commit 2762ec22 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fixed miner and logger

parent cd9b3445
Branches
Tags
No related merge requests found
...@@ -96,7 +96,7 @@ func AddLogSystem(logSystem LogSystem) { ...@@ -96,7 +96,7 @@ func AddLogSystem(logSystem LogSystem) {
mutex.Lock() mutex.Lock()
defer mutex.Unlock() defer mutex.Unlock()
if logSystems == nil { if logSystems == nil {
logMessages = make(chan *logMessage) logMessages = make(chan *logMessage, 10)
quit = make(chan bool, 1) quit = make(chan bool, 1)
go start() go start()
} }
......
...@@ -135,10 +135,9 @@ out: ...@@ -135,10 +135,9 @@ out:
func (self *Miner) Stop() { func (self *Miner) Stop() {
logger.Infoln("Stopping...") logger.Infoln("Stopping...")
self.quitChan <- true
close(self.powQuitChan) self.quitChan <- true
close(self.quitChan) self.powQuitChan <- ethutil.React{}
self.ethereum.Reactor().Post("miner:stop", self) self.ethereum.Reactor().Post("miner:stop", self)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment