Skip to content

Commit

Permalink
fix hangin issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Oct 17, 2024
1 parent c267934 commit bdb0f5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion oryx-tui/src/handler.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use std::{thread, time::Duration};
use std::{
thread::{self, sleep},
time::Duration,
};

use crate::{
app::{ActivePopup, App, AppResult},
Expand Down Expand Up @@ -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));
}
}

Expand Down

0 comments on commit bdb0f5d

Please sign in to comment.