diff --git a/iroh-relay/src/server.rs b/iroh-relay/src/server.rs index a6f7098aee..49f60da462 100644 --- a/iroh-relay/src/server.rs +++ b/iroh-relay/src/server.rs @@ -493,6 +493,7 @@ async fn relay_supervisor( ret = tasks.join_next(), if tasks.len() > 0 => ret.expect("checked"), ret = &mut quic_fut, if quic_enabled => ret.map(anyhow::Ok), ret = &mut relay_fut, if relay_enabled => ret.map(anyhow::Ok), + else => Ok(Err(anyhow!("No relay services are enabled."))), }; let ret = match res { Ok(Ok(())) => {