Skip to content

Commit

Permalink
fixup: remove spawn_blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Dec 13, 2024
1 parent 21cbfeb commit e036050
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mullvad-daemon/src/leak_checker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ impl LeakChecker {
callbacks: vec![],
};

// TODO: fix task.run() not being Send
//tokio::task::spawn(task.run());
tokio::task::spawn_blocking(|| Handle::current().block_on(task.run()));
tokio::task::spawn(task.run());
// TODO: remove this if the above compiles on macos and android
//tokio::task::spawn_blocking(|| Handle::current().block_on(task.run()));

LeakChecker { task_event_tx }
}
Expand Down

0 comments on commit e036050

Please sign in to comment.