commit | 8b428dd833ef68497e49aedf1a057ac7af991d2f | [log] [tgz] |
---|---|---|
author | Robin Thellend <rthellend@google.com> | Wed May 28 16:00:46 2014 -0700 |
committer | Robin Thellend <rthellend@google.com> | Wed May 28 16:00:48 2014 -0700 |
tree | cc564832323d20a05fae632d039f714cd19baeed | |
parent | c996bbff2591b529e8f839bdc1ee9c53f8ea2cd7 [diff] |
veyron/examples/rockpaperscissors: Fix leak. After the RPC finished, there is nothing reading from the playerChan anymore. If additional input is received, including EOF, a goroutine would block forever trying to write to playerChan. This is resolved with using a 'done' channel to make the goroutine return cleanly. Change-Id: I258f75dfbfc9a26dd292b6e9077e307620713e86