Эх сурвалжийг харах

net: disconnect from seed after performing seed protocol

lunar-mining 4 жил өмнө
parent
commit
9e07f7a216

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

@@ -107,7 +107,8 @@ impl SeedSession {
 
 
                 self.clone().register_channel(channel.clone(), executor.clone()).await?;
                 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);
                 debug!(target: "net", "SeedSession::start_seed(i={}) [END]", seed_index);
                 Ok(())
                 Ok(())