Skip to content

Commit

Permalink
Merge pull request #1366 from hashicorp/b-stats-restart
Browse files Browse the repository at this point in the history
Set running when restoring
  • Loading branch information
dadgar committed Jun 28, 2016
2 parents 5e7efc1 + ab7a3b2 commit 25eb330
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/task_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 25eb330

Please sign in to comment.