We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400c42c commit c9fbac3Copy full SHA for c9fbac3
src/main.rs
@@ -355,9 +355,10 @@ async fn create_endpoint(
355
}
356
let endpoint = builder.bind().await?;
357
358
- if !(common.relay == RelayModeOption::Disabled) {
359
- let _ = tokio::time::timeout(Duration::from_secs(5), endpoint.online()).await;
360
- };
+ if !(common.relay == RelayModeOption::Disabled)
+ && tokio::time::timeout(Duration::from_secs(5), endpoint.online()).await.is_err() {
+ eprintln!("Error waiting for relay connection (timeout)");
361
+ };
362
363
Ok(endpoint)
364
0 commit comments