Skip to content

Commit

Permalink
fix: some modules crashing due to recent gtk refactor
Browse files Browse the repository at this point in the history
Fixes a crash introduced by commit bea442e where the `await_sync` function incorrectly tried to use the current tokio runtime, which it is often outside, instead of the singleton.

Fixes #382
  • Loading branch information
JakeStanger committed Dec 24, 2023
1 parent 29eeefb commit 1773cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,5 +370,5 @@ where
///
/// TODO: remove all instances of this once async trait funcs are stable
pub fn await_sync<F: Future>(f: F) -> F::Output {
block_in_place(|| Handle::current().block_on(f))
block_in_place(|| Ironbar::runtime().block_on(f))
}

0 comments on commit 1773cf1

Please sign in to comment.