diff options
author | Andrew Gerrand <adg@golang.org> | 2015-09-01 22:25:00 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-09-01 22:25:00 +0000 |
commit | 13df294e242896bb3ae4afe4f8284003e54d23eb (patch) | |
tree | f47685b7c0349ffb3061062d0cc194bcf8d4645a | |
parent | 150171df577da7c3753e3656bbea587ebcf9ea54 (diff) | |
parent | e645bbf89890fbf93251a1432dad678746bcec6c (diff) | |
download | tools-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.go | 2 |
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 |