Fixed a bug where tray icon didnt appear on Windows
This commit is contained in:
parent
7c92e90d65
commit
87c4bdc247
1 changed files with 3 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue