diff --git a/client/task_runner.go b/client/task_runner.go index 44e05f646..4551f4a3e 100644 --- a/client/task_runner.go +++ b/client/task_runner.go @@ -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 }