mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
fix: avoid short smtp interruptions
This commit is contained in:
@@ -255,11 +255,7 @@ async fn smtp_loop(ctx: Context, started: Sender<()>, smtp_handlers: SmtpConnect
|
|||||||
Ok(None) | Err(async_std::future::TimeoutError { .. }) => {
|
Ok(None) | Err(async_std::future::TimeoutError { .. }) => {
|
||||||
info!(ctx, "smtp fake idle");
|
info!(ctx, "smtp fake idle");
|
||||||
// Fake Idle
|
// Fake Idle
|
||||||
idle_interrupt_receiver
|
idle_interrupt_receiver.recv().await.ok();
|
||||||
.recv()
|
|
||||||
.timeout(Duration::from_secs(5))
|
|
||||||
.await
|
|
||||||
.ok();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user