Merge pull request #1366 from hashicorp/b-stats-restart
Set running when restoring
This commit is contained in:
commit
6f0685af44
|
@ -180,6 +180,10 @@ func (r *TaskRunner) RestoreState() error {
|
||||||
r.handleLock.Lock()
|
r.handleLock.Lock()
|
||||||
r.handle = handle
|
r.handle = handle
|
||||||
r.handleLock.Unlock()
|
r.handleLock.Unlock()
|
||||||
|
|
||||||
|
r.runningLock.Lock()
|
||||||
|
r.running = true
|
||||||
|
r.runningLock.Unlock()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue