From e1f720c770f0e6c1e2d9fff2d4a61eb47f49a512 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 18 Nov 2014 21:53:57 -0600 Subject: [PATCH] Triage a possible bug blocking while closing UTPConns --- connection.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.48.1