From 860498c0ab14d068e53ed29ea2fea3cc0270e837 Mon Sep 17 00:00:00 2001 From: OlivierHecart Date: Tue, 3 Dec 2024 15:46:38 +0100 Subject: [PATCH] Add warning when starting with no listener endpoints --- zenoh/src/net/runtime/orchestrator.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zenoh/src/net/runtime/orchestrator.rs b/zenoh/src/net/runtime/orchestrator.rs index 1ed468bbf..bd3cf0a15 100644 --- a/zenoh/src/net/runtime/orchestrator.rs +++ b/zenoh/src/net/runtime/orchestrator.rs @@ -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