Set running when restoring
This commit is contained in:
parent
129c097768
commit
c35b1be845
|
@ -180,6 +180,10 @@ func (r *TaskRunner) RestoreState() error {
|
|||
r.handleLock.Lock()
|
||||
r.handle = handle
|
||||
r.handleLock.Unlock()
|
||||
|
||||
r.runningLock.Lock()
|
||||
r.running = true
|
||||
r.runningLock.Unlock()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue