Skip to content

Commit

Permalink
Add warning when starting with no listener endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Dec 3, 2024
1 parent 94d99c3 commit 860498c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zenoh/src/net/runtime/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ impl Runtime {
}

async fn bind_listeners(&self, listeners: &[EndPoint]) -> ZResult<()> {
if listeners.is_empty() {
tracing::warn!("Starting with no listener endpoints!");
return Ok(());
}
let timeout = self.get_global_listener_timeout();
if timeout.is_zero() {
self.bind_listeners_impl(listeners).await
Expand Down

0 comments on commit 860498c

Please sign in to comment.