diff options
Diffstat (limited to 'worker.go')
-rw-r--r-- | worker.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -203,9 +203,10 @@ func (w *Worker) start() error { w.endState, _ = w.cmd.Process.Wait() if w.waitDone != nil { close(w.waitDone) + w.mu.Lock() + defer w.mu.Unlock() + if w.rl != nil { - w.mu.Lock() - defer w.mu.Unlock() w.rl.Close() } } |