connection.go | 3 ++- diff --git a/connection.go b/connection.go index ddd2364d8aa16dbf093c06de86c2b907e1ba8e0d..c1f337fc8cba35b0fcdf9ce3a5c8622156f7aedf 100644 --- a/connection.go +++ b/connection.go @@ -174,7 +174,8 @@ return default: } close(c.closing) - c.Socket.Close() + // TODO: This call blocks sometimes, why? + go c.Socket.Close() } func (c *connection) PeerHasPiece(index pp.Integer) bool {