Fixed a bug where tray icon didnt appear on Windows

This commit is contained in:
Antoine Gersant 2025-02-02 00:01:28 -08:00
parent 7c92e90d65
commit 87c4bdc247

View file

@ -42,7 +42,9 @@ pub async fn launch(app: App) -> Result<(), std::io::Error> {
let router = make_router(app);
let make_service = ServiceExt::<axum::extract::Request>::into_make_service(router);
let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{port}")).await?;
axum::serve(listener, make_service).await?;
tokio::spawn(async {
axum::serve(listener, make_service).await.unwrap();
});
Ok(())
}