diff options
author | Wolfy-J <[email protected]> | 2018-01-23 20:16:57 -0500 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-23 20:16:57 -0500 |
commit | aee544605d206059d56c647c6f69b9fd19fdd299 (patch) | |
tree | 54425597c9d9eebd6f6ea45f075ebee1daa69051 | |
parent | 116a7932b84ae9af65a5f7f667044c0cdf852fbc (diff) |
lock for stop
-rw-r--r-- | worker.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ func (w *Worker) Start() error { func (w *Worker) Wait() error { <-w.waitDone - // ensure that all pipe descriptors are closed + // ensure that all read/write operations are complete w.mu.Lock() defer w.mu.Unlock() |