Bläddra i källkod

inbound: remove duplicate call to unregister()

it gets called in session::remove_sub_on_stop() so this is redundant + dangerous
draoi 2 år sedan
förälder
incheckning
318c7bef49
1 ändrade filer med 0 tillägg och 2 borttagningar
  1. 0 2
      src/net/session/inbound_session.rs

+ 0 - 2
src/net/session/inbound_session.rs

@@ -187,8 +187,6 @@ impl InboundSession {
 
 
         stop_sub.receive().await;
         stop_sub.receive().await;
 
 
-        self.p2p().hosts().unregister(channel.clone().address()).await;
-
         debug!(
         debug!(
             target: "net::inbound_session::setup_channel()",
             target: "net::inbound_session::setup_channel()",
             "Received stop_sub, channel removed from P2P",
             "Received stop_sub, channel removed from P2P",