Skip to content

Commit

Permalink
Do not send scout messages if autoconnect is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Apr 23, 2024
1 parent 2fdddae commit 84fd0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenoh/src/net/runtime/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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?;
}

Expand Down

0 comments on commit 84fd0fa

Please sign in to comment.