fix: avoid short smtp interruptions

This commit is contained in:
dignifiedquire
2020-05-26 19:40:30 +02:00
parent 4330da232c
commit bd903d8e8f

View File

@@ -255,11 +255,7 @@ async fn smtp_loop(ctx: Context, started: Sender<()>, smtp_handlers: SmtpConnect
Ok(None) | Err(async_std::future::TimeoutError { .. }) => {
info!(ctx, "smtp fake idle");
// Fake Idle
idle_interrupt_receiver
.recv()
.timeout(Duration::from_secs(5))
.await
.ok();
idle_interrupt_receiver.recv().await.ok();
}
}
}