aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer/miner.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethminer/miner.go')
-rw-r--r--ethminer/miner.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index 8659d2889..e51b37e05 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -133,6 +133,9 @@ func (miner *Miner) listener() {
func (miner *Miner) Stop() {
logger.Infoln("Stopping...")
+
+ miner.powQuitChan <- ethreact.Event{}
+
status := make(chan error)
miner.quitChan <- status
<-status
@@ -143,9 +146,6 @@ func (miner *Miner) Stop() {
reactor.Unsubscribe("newBlock", miner.reactChan)
reactor.Unsubscribe("newTx:pre", miner.reactChan)
- close(miner.powQuitChan)
- close(miner.quitChan)
-
reactor.Post("miner:stop", miner)
}