Browse Source

Don't deadlock on closing while sending index (fixes #189)

Jakob Borg 11 years ago
parent
commit
abbb40abd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      protocol/protocol.go

+ 1 - 1
protocol/protocol.go

@@ -453,7 +453,7 @@ func (c *rawConnection) close(err error) {
 		c.writer.Close()
 		c.reader.Close()
 
-		c.receiver.Close(c.id, err)
+		go c.receiver.Close(c.id, err)
 	}
 }