Merge pull request #5518 from hashicorp/f-simplify-kill

client: simplify kill logic
This commit is contained in:
Michael Schurter
2019-04-15 14:11:58 -07:00
committed by GitHub
3 changed files with 0 additions and 31 deletions

View File

@@ -101,20 +101,6 @@ func (tr *TaskRunner) getKillErr() error {
return tr.killErr
}
// setRunLaunched marks the fact that the Run loop has been started
func (tr *TaskRunner) setRunLaunched() {
tr.runLaunchedLock.Lock()
defer tr.runLaunchedLock.Unlock()
tr.runLaunched = true
}
// hasRunLaunched returns whether the Run loop has been started
func (tr *TaskRunner) hasRunLaunched() bool {
tr.runLaunchedLock.Lock()
defer tr.runLaunchedLock.Unlock()
return tr.runLaunched
}
// hookState returns the state for the given hook or nil if no state is
// persisted for the hook.
func (tr *TaskRunner) hookState(name string) *state.HookState {