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