Merge pull request #1366 from hashicorp/b-stats-restart

Set running when restoring
This commit is contained in:
Alex Dadgar 2016-06-28 13:52:49 -07:00 committed by GitHub
commit 6f0685af44
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
}