diff --git a/cmd/miner/symbols/lib/robot.go b/cmd/miner/symbols/lib/robot.go index 910b86ee..4eaed991 100644 --- a/cmd/miner/symbols/lib/robot.go +++ b/cmd/miner/symbols/lib/robot.go @@ -258,18 +258,15 @@ func (this *QitmeerRobot) SubmitWork() { this.InvalidShares++ } } - this.SubmitLock.Unlock() - if err != ErrLimitWork { // limit wait block connect - time.AfterFunc(1*time.Second, func() { - this.SubmitLock.Lock() - r := this.Work.Get() - this.SubmitLock.Unlock() - if this.Work.Block != nil { - common.MinerLoger.Info("Change Task", "height", this.Work.Block.Height) - } - this.NotifyWork(r) - }) - } + time.AfterFunc(1*time.Second, func() { + //this.SubmitLock.Lock() + r := this.Work.Get() + this.SubmitLock.Unlock() + if this.Work.Block != nil { + common.MinerLoger.Info("Change Task", "height", this.Work.Block.Height) + } + this.NotifyWork(r) + }) } else { if !this.Pool { // solo this.PendingLock.Lock()