Close PeerConn.conn synchronously

This commit is contained in:
Matt Joiner 2020-05-03 18:40:40 +10:00
parent a7b665873c
commit 9edd98ad78
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ func (cn *PeerConn) close() {
cn.discardPieceInclination()
cn._pieceRequestOrder.Clear()
if cn.conn != nil {
go cn.conn.Close()
cn.conn.Close()
}
}