summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-12 23:55:06 +0300
committerWolfy-J <[email protected]>2018-06-12 23:55:06 +0300
commit01f4eaa5678d366de55b84dd0b0b4186c47f6dc5 (patch)
treeff0fcedf3b701ba4e8f25949000a568d565900a0
parent9a33c61229cae83ce00cd86ad619fa1825b95421 (diff)
better multithread control
-rw-r--r--worker.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/worker.go b/worker.go
index bbb541c8..811bda5f 100644
--- a/worker.go
+++ b/worker.go
@@ -109,7 +109,6 @@ func (w *Worker) Wait() error {
w.cmd.Wait()
}
- // todo: is it ok?
if w.endState.Success() {
w.state.set(StateStopped)
return nil