From 7e857c875ecb8027c82b78b7951a92c5e47ef3b1 Mon Sep 17 00:00:00 2001
From: Matt Joiner <anacrolix@gmail.com>
Date: Thu, 12 Oct 2017 17:51:47 +1100
Subject: [PATCH] If closing a connection Conn fails we can't do anything, and
 there's nothing to say

---
 connection.go | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/connection.go b/connection.go
index ba1d1e1e..faa7c922 100644
--- a/connection.go
+++ b/connection.go
@@ -230,14 +230,7 @@ func (cn *connection) Close() {
 	cn.discardPieceInclination()
 	cn.pieceRequestOrder.Clear()
 	if cn.conn != nil {
-		go func() {
-			// TODO: This call blocks sometimes, why? Maybe it was the Go utp
-			// implementation?
-			err := cn.conn.Close()
-			if err != nil {
-				log.Printf("error closing connection net.Conn: %s", err)
-			}
-		}()
+		go cn.conn.Close()
 	}
 }
 
-- 
2.51.0