bugfix: dont remove address when connection is opened for outbound

This commit is contained in:
narodnik
2022-03-07 18:07:35 +01:00
parent f143e10200
commit d7251ab2dd

View File

@@ -156,7 +156,6 @@ impl OutboundSession {
self.p2p().remove_pending(&addr).await;
{
let info = &mut self.slot_info.lock().await[slot_number as usize];
info.addr = None;
info.channel = Some(channel.clone());
info.state = OutboundState::Connected;
}