Просмотр исходного кода

inbound: remove duplicate call to unregister()

it gets called in session::remove_sub_on_stop() so this is redundant + dangerous
draoi 2 лет назад
Родитель
Сommit
318c7bef49
1 измененных файлов с 0 добавлено и 2 удалено
  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;
 
-        self.p2p().hosts().unregister(channel.clone().address()).await;
-
         debug!(
             target: "net::inbound_session::setup_channel()",
             "Received stop_sub, channel removed from P2P",