Prevent opening browser attempt form blocking the server (#667)

This commit is contained in:
Solomon
2025-09-09 16:55:13 +01:00
committed by GitHub
parent 70497c4cb9
commit 17f8f2bebd

View File

@@ -90,13 +90,15 @@ async fn main() -> Result<(), VibeKanbanError> {
if !cfg!(debug_assertions) { if !cfg!(debug_assertions) {
tracing::info!("Opening browser..."); tracing::info!("Opening browser...");
if let Err(e) = open_browser(&format!("http://127.0.0.1:{actual_port}")).await { tokio::spawn(async move {
tracing::warn!( if let Err(e) = open_browser(&format!("http://127.0.0.1:{actual_port}")).await {
"Failed to open browser automatically: {}. Please open http://127.0.0.1:{} manually.", tracing::warn!(
e, "Failed to open browser automatically: {}. Please open http://127.0.0.1:{} manually.",
actual_port e,
); actual_port
} );
}
});
} }
axum::serve(listener, app_router).await?; axum::serve(listener, app_router).await?;