Prevent opening browser attempt form blocking the server (#667)
This commit is contained in:
@@ -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?;
|
||||||
|
|||||||
Reference in New Issue
Block a user