mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 13:56:30 +03:00
it compiles with async-imap
This commit is contained in:
@@ -107,7 +107,7 @@ impl JobThread {
|
||||
}
|
||||
|
||||
fn connect_to_imap(&self, context: &Context) -> bool {
|
||||
if self.imap.is_connected() {
|
||||
if async_std::task::block_on(async move { self.imap.is_connected().await }) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user