summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/worker.go b/worker.go
index 811bda5f..bbb541c8 100644
--- a/worker.go
+++ b/worker.go
@@ -109,6 +109,7 @@ func (w *Worker) Wait() error {
w.cmd.Wait()
}
+ // todo: is it ok?
if w.endState.Success() {
w.state.set(StateStopped)
return nil