From: Matt Joiner Date: Wed, 19 Nov 2014 03:53:57 +0000 (-0600) Subject: Triage a possible bug blocking while closing UTPConns X-Git-Tag: v1.0.0~1505 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e1f720c770f0e6c1e2d9fff2d4a61eb47f49a512;p=btrtrc.git Triage a possible bug blocking while closing UTPConns --- diff --git a/connection.go b/connection.go index ddd2364d..c1f337fc 100644 --- a/connection.go +++ b/connection.go @@ -174,7 +174,8 @@ func (c *connection) Close() { 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 {