Commit d3e84cc8 authored by obscuren's avatar obscuren

miner: properly check for mining operation on Register

parent 5cec1aad
......@@ -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()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment