commit | 59315fbfb5cc24fc130ed683c8be10bc659d3808 | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Tue Nov 02 10:58:27 2010 -0700 |
committer | Rob Pike <r@golang.org> | Tue Nov 02 10:58:27 2010 -0700 |
tree | d8f3d9adc814bedaf993fa6f10a966563c466894 | |
parent | 396228a6525b211e0c368f255724eeefef264062 [diff] |
netchan: fix locking bug. There's no need to hold the client mutex when calling encode, since encode itself uses a mutex to make the writes atomic. However, we need to keep the messages ordered, so add a mutex for that purpose alone. Fixes #1244. R=rsc CC=golang-dev https://golang.org/cl/2833041