From 84fd0fa83ba9c3a05829f29c344cd51e73101770 Mon Sep 17 00:00:00 2001 From: Luca Cominardi Date: Tue, 23 Apr 2024 15:07:06 +0200 Subject: [PATCH] Do not send scout messages if autoconnect is empty --- zenoh/src/net/runtime/orchestrator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zenoh/src/net/runtime/orchestrator.rs b/zenoh/src/net/runtime/orchestrator.rs index 687fa90649..f8bce8e0de 100644 --- a/zenoh/src/net/runtime/orchestrator.rs +++ b/zenoh/src/net/runtime/orchestrator.rs @@ -126,7 +126,7 @@ impl Runtime { self.connect_peers(&peers, false).await?; - if scouting { + if scouting && !autoconnect.is_empty() { self.start_scout(listen, autoconnect, addr, ifaces).await?; } tokio::time::sleep(delay).await; @@ -169,7 +169,7 @@ impl Runtime { self.connect_peers(&peers, false).await?; - if scouting { + if scouting && !autoconnect.is_empty() { self.start_scout(listen, autoconnect, addr, ifaces).await?; }