diff options
Diffstat (limited to 'worker.go')
-rw-r--r-- | worker.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -105,12 +105,12 @@ func (w *Worker) Start() error { w.endState, _ = w.cmd.Process.Wait() if w.waitDone != nil { w.state.set(StateStopped) - close(w.waitDone) - if w.rl != nil { - w.mu.Lock() - defer w.mu.Unlock() + //w.mu.Lock() + //defer w.mu.Unlock() + close(w.waitDone) + if w.rl != nil { w.rl.Close() } } |