diff options
Diffstat (limited to 'tools/src/imapshell.rs')
-rw-r--r-- | tools/src/imapshell.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/src/imapshell.rs b/tools/src/imapshell.rs index 4a10a9db..e6df86b2 100644 --- a/tools/src/imapshell.rs +++ b/tools/src/imapshell.rs @@ -48,7 +48,10 @@ fn main() -> Result<()> { BackendEventConsumer::new(std::sync::Arc::new(|_, _| ())), )?; - std::thread::spawn(|| smol::run(futures::future::pending::<()>())); + std::thread::spawn(move || { + let ex = smol::Executor::new(); + futures::executor::block_on(ex.run(futures::future::pending::<()>())); + }); (imap.as_any_mut()) .downcast_mut::<ImapType>() .unwrap() |