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