diff --git a/oryx-tui/src/handler.rs b/oryx-tui/src/handler.rs index 42d704b..8d88667 100644 --- a/oryx-tui/src/handler.rs +++ b/oryx-tui/src/handler.rs @@ -1,4 +1,7 @@ -use std::{thread, time::Duration}; +use std::{ + thread::{self, sleep}, + time::Duration, +}; use crate::{ app::{ActivePopup, App, AppResult}, @@ -26,6 +29,8 @@ pub fn handle_key_events( .start(event_sender.clone(), app.data_channel_sender.clone())?; app.start_sniffing = true; + // Fix start hanging + sleep(Duration::from_millis(150)); } }