Restructure protocol code with less locking

This commit is contained in:
Jakob Borg
2014-05-11 14:30:29 -03:00
parent b115fca8a9
commit 1a1f118f1a
7 changed files with 360 additions and 216 deletions

View File

@@ -174,9 +174,7 @@ func TestClose(t *testing.T) {
c0.close(nil)
if !c0.isClosed() {
t.Fatal("Connection should be closed")
}
<-c0.closed
if !m0.isClosed() {
t.Fatal("Connection should be closed")
}