aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-01 17:55:50 +0800
committerobscuren <geffobscura@gmail.com>2014-07-01 17:55:50 +0800
commit2bbc204328cf674e8ccd591bb4d08179225b396a (patch)
tree2538cd6b614d8de2826d71a0e4f77663aa33c859 /ethminer
parent92693e44599c44e606813d2c3259cc9f6f81a644 (diff)
downloaddexon-2bbc204328cf674e8ccd591bb4d08179225b396a.tar
dexon-2bbc204328cf674e8ccd591bb4d08179225b396a.tar.gz
dexon-2bbc204328cf674e8ccd591bb4d08179225b396a.tar.bz2
dexon-2bbc204328cf674e8ccd591bb4d08179225b396a.tar.lz
dexon-2bbc204328cf674e8ccd591bb4d08179225b396a.tar.xz
dexon-2bbc204328cf674e8ccd591bb4d08179225b396a.tar.zst
dexon-2bbc204328cf674e8ccd591bb4d08179225b396a.zip
Close pow chat. Fixes #95
Diffstat (limited to 'ethminer')
-rw-r--r--ethminer/miner.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index 66388723e..71d4b2428 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -130,7 +130,9 @@ out:
func (self *Miner) Stop() {
logger.Infoln("Stopping...")
self.quitChan <- true
- self.powQuitChan <- ethutil.React{}
+
+ close(self.powQuitChan)
+ close(self.quitChan)
}
func (self *Miner) mineNewBlock() {