diff --git a/Cargo.toml b/Cargo.toml index 249aa71..1068446 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ fastrand = "2.3.0" thiserror = "2.0.12" # Async -tokio = { version = "1.41.1", features = ["macros", "rt-multi-thread", "fs"], default-features = false } +tokio = { version = "1.41.1", features = ["macros", "rt", "fs"], default-features = false } arc-swap = "1.7.1" futures = "0.3.31" diff --git a/src/main.rs b/src/main.rs index 99f6d43..020bbb4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -101,7 +101,7 @@ pub fn data_dir() -> crate::Result { /// Parses CLI arguments, initializes the audio stream and player, then /// runs the main event loop. On exit it performs cleanup of the UI and /// returns the inner result. -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() -> eyre::Result<()> { let args = Args::parse();