commit | a57725ef568f312e5ba2ab860586daae522d3f19 | [log] [tgz] |
---|---|---|
author | Robin Thellend <rthellend@google.com> | Thu Jul 31 18:28:38 2014 -0700 |
committer | Robin Thellend <rthellend@google.com> | Thu Jul 31 18:28:38 2014 -0700 |
tree | 789f2d44cb32515445bea463f9fc7d1f1904b725 | |
parent | c009028cd874dd3e806b16714f7b6f7f1c89f280 [diff] |
veyron/examples/rockpaperscissors: Fix race. Calling Send() from different goroutines is detected as a race, even though the calls don't appear to be concurrent. To fix this, use channels to send the messages to a single goroutine that handles all the Send() calls. Change-Id: Id597ca16bc29c66601ad86ddec9176571d64d5b6