diff options
Diffstat (limited to 'crates/shirabe/src/util/sync_helper.rs')
| -rw-r--r-- | crates/shirabe/src/util/sync_helper.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/shirabe/src/util/sync_helper.rs b/crates/shirabe/src/util/sync_helper.rs index 8988795..1014b86 100644 --- a/crates/shirabe/src/util/sync_helper.rs +++ b/crates/shirabe/src/util/sync_helper.rs @@ -179,9 +179,7 @@ impl SyncHelper { promise: Option<std::pin::Pin<Box<dyn std::future::Future<Output = Result<()>> + '_>>>, ) -> Result<()> { if let Some(promise) = promise { - tokio::runtime::Runtime::new() - .unwrap() - .block_on(r#loop.borrow_mut().wait(vec![promise], None))?; + crate::util::sync_executor::block_on(r#loop.borrow_mut().wait(vec![promise], None))?; } Ok(()) } |
