From c35b1be84569c88ebc75655e975ac56f021189ea Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Tue, 28 Jun 2016 13:47:59 -0700 Subject: [PATCH] Set running when restoring --- client/task_runner.go | 4 ++++ 1 file changed, 4 insertions(+) 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 }