Skip to content

Commit 61cb085

Browse files
committed
fix: fixed stats reporting getting stuck while the tokio runtime is blocking
1 parent fd5be66 commit 61cb085

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plugins/manager.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ pub(crate) async fn run(
7979

8080
if !session.options.quiet {
8181
// start statistics reporting
82-
task::spawn(report::statistics(session.clone()));
82+
let stat_sess = session.clone();
83+
std::thread::spawn(move || {
84+
report::statistics(stat_sess);
85+
});
8386
}
8487

8588
// loop credentials for this session

0 commit comments

Comments
 (0)