瀏覽代碼

manual_session: avoid risky op when all attempts to manual connect fail

Simply exit the manual session when we fail to connect
manual_attempt_limit times. Marking as suspend could panic if the host
has been received via the seedsync/ protocoladdr process and is currently
in an incompatiable state.
draoi 2 年之前
父節點
當前提交
6ba22f7a85
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/net/session/manual_session.rs

+ 0 - 3
src/net/session/manual_session.rs

@@ -199,9 +199,6 @@ impl ManualSession {
             addr, attempts,
         );
 
-        // Mark this peer as Suspend, which sends it to the Refinery for processing.
-        self.p2p().hosts().try_register(addr.clone(), HostState::Suspend).await.unwrap();
-
         Ok(())
     }
 }