Set running when restoring

This commit is contained in:
Alex Dadgar 2016-06-28 13:47:59 -07:00
parent 129c097768
commit c35b1be845
1 changed files with 4 additions and 0 deletions

View File

@ -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
}