Close PeerConn.conn synchronously
This commit is contained in:
parent
a7b665873c
commit
9edd98ad78
|
@ -329,7 +329,7 @@ func (cn *PeerConn) close() {
|
|||
cn.discardPieceInclination()
|
||||
cn._pieceRequestOrder.Clear()
|
||||
if cn.conn != nil {
|
||||
go cn.conn.Close()
|
||||
cn.conn.Close()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue