summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-23 20:16:57 -0500
committerWolfy-J <[email protected]>2018-01-23 20:16:57 -0500
commitaee544605d206059d56c647c6f69b9fd19fdd299 (patch)
tree54425597c9d9eebd6f6ea45f075ebee1daa69051 /worker.go
parent116a7932b84ae9af65a5f7f667044c0cdf852fbc (diff)
lock for stop
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/worker.go b/worker.go
index 8fbaa892..d581481f 100644
--- a/worker.go
+++ b/worker.go
@@ -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()