mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-15 14:17:24 +08:00
handle close peer conn correctly (#1082)
This commit is contained in:
@@ -211,10 +211,7 @@ impl DirectConnectorManagerData {
|
||||
dst_peer_id,
|
||||
peer_id
|
||||
);
|
||||
self.peer_manager
|
||||
.get_peer_map()
|
||||
.close_peer_conn(peer_id, &conn_id)
|
||||
.await?;
|
||||
self.peer_manager.close_peer_conn(peer_id, &conn_id).await?;
|
||||
return Err(Error::InvalidUrl(addr));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user