Change SwarmConn.conn to muxed_conn

This commit is contained in:
mhchia
2019-09-23 15:46:50 +08:00
parent 8d2415a404
commit 92deae41dc
7 changed files with 15 additions and 13 deletions

View File

@ -279,7 +279,7 @@ class Swarm(INetwork):
"""
Simply remove the connection from Swarm's records, without closing the connection.
"""
peer_id = swarm_conn.conn.peer_id
peer_id = swarm_conn.muxed_conn.peer_id
if peer_id not in self.connections:
return
# TODO: Should be changed to remove the exact connection,