aboutsummaryrefslogtreecommitdiffstats
path: root/miner
diff options
context:
space:
mode:
Diffstat (limited to 'miner')
-rw-r--r--miner/miner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/miner.go b/miner/miner.go
index 6c220b1a6..19d39a605 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -101,7 +101,7 @@ func (self *Miner) Stop() {
}
func (self *Miner) Register(agent Agent) {
- if atomic.LoadInt32(&self.mining) == 0 {
+ if self.Mining() {
agent.Start()
}