connection.go | 9 +-------- diff --git a/connection.go b/connection.go index ba1d1e1e7c42e02621abeaa41f01a09d58e77885..faa7c9220eb6b141f91ecf6093bddf40243bb248 100644 --- a/connection.go +++ b/connection.go @@ -230,14 +230,7 @@ } 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() } }