Skip to content

Commit

Permalink
fix: fixed stats reporting getting stuck while the tokio runtime is b…
Browse files Browse the repository at this point in the history
…locking
  • Loading branch information
evilsocket committed Dec 19, 2023
1 parent fd5be66 commit 61cb085
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ pub(crate) async fn run(

if !session.options.quiet {
// start statistics reporting
task::spawn(report::statistics(session.clone()));
let stat_sess = session.clone();
std::thread::spawn(move || {
report::statistics(stat_sess);
});
}

// loop credentials for this session
Expand Down

0 comments on commit 61cb085

Please sign in to comment.