aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2015-09-01 22:25:00 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-09-01 22:25:00 +0000
commit13df294e242896bb3ae4afe4f8284003e54d23eb (patch)
treef47685b7c0349ffb3061062d0cc194bcf8d4645a
parent150171df577da7c3753e3656bbea587ebcf9ea54 (diff)
parente645bbf89890fbf93251a1432dad678746bcec6c (diff)
downloadtools-13df294e242896bb3ae4afe4f8284003e54d23eb.tar.gz
playground/socket: make output/end race less likely
automerge: e645bbf * commit 'e645bbf89890fbf93251a1432dad678746bcec6c': playground/socket: make output/end race less likely
-rw-r--r--playground/socket/socket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/playground/socket/socket.go b/playground/socket/socket.go
index 6905d0c..76527ae 100644
--- a/playground/socket/socket.go
+++ b/playground/socket/socket.go
@@ -316,7 +316,7 @@ func (p *process) end(err error) {
m.Body = err.Error()
}
// Wait for any outstanding reads to finish (potential race here).
- time.AfterFunc(msgDelay, func() { p.out <- m })
+ time.AfterFunc(4*msgDelay, func() { p.out <- m })
}
// cmd builds an *exec.Cmd that writes its standard output and error to the