From 9edd98ad780c41b2712c2fe984324089e9dffc93 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 3 May 2020 18:40:40 +1000 Subject: [PATCH] Close PeerConn.conn synchronously --- peerconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peerconn.go b/peerconn.go index fc046abe..df395006 100644 --- a/peerconn.go +++ b/peerconn.go @@ -329,7 +329,7 @@ func (cn *PeerConn) close() { cn.discardPieceInclination() cn._pieceRequestOrder.Clear() if cn.conn != nil { - go cn.conn.Close() + cn.conn.Close() } }