mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 22:06:29 +03:00
async sleep
This commit is contained in:
@@ -283,7 +283,7 @@ impl Imap {
|
||||
// not have entered idle_wait yet, give it some time
|
||||
// for that to happen. XXX handle this without extra wait
|
||||
// https://github.com/deltachat/deltachat-core-rust/issues/925
|
||||
std::thread::sleep(Duration::from_millis(200));
|
||||
async_std::task::sleep(Duration::from_millis(200)).await;
|
||||
info!(context, "low-level: dropping stop-source to interrupt idle");
|
||||
std::mem::drop(interrupt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user