diff --git a/server/src/main.rs b/server/src/main.rs index 5c7443e6..25dc5377 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -33,7 +33,6 @@ use rest::init::start_api_thread; use serialport::UsbPortInfo; use smol::{ channel::{Receiver, Sender}, - future, lock::RwLock, }; use socketioxide::extract::SocketRef; @@ -413,7 +412,7 @@ fn main() { app_state.clone(), )); } - future::yield_now().await; + smol::Timer::after(Duration::from_micros(150)).await; } }); }