Browse Source

net: disconnect from seed after performing seed protocol

lunar-mining 4 năm trước cách đây
mục cha
commit
9e07f7a216
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/net/session/seed_session.rs

+ 2 - 1
src/net/session/seed_session.rs

@@ -107,7 +107,8 @@ impl SeedSession {
 
                 self.clone().register_channel(channel.clone(), executor.clone()).await?;
 
-                //self.attach_protocols(channel, hosts, settings, executor).await?;
+                debug!("Disconnecting from seed #{} [{}]", seed_index, seed);
+                channel.stop().await;
 
                 debug!(target: "net", "SeedSession::start_seed(i={}) [END]", seed_index);
                 Ok(())