miner: properly check for mining operation on Register

pull/989/head
obscuren 10 years ago
parent 5cec1aad15
commit d3e84cc8b4
  1. 2
      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()
}

Loading…
Cancel
Save