mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
reconnect on io errors and broken pipes
This commit is contained in:
@@ -1025,7 +1025,7 @@ impl Imap {
|
|||||||
info!(context, "IMAP-IDLE has data.");
|
info!(context, "IMAP-IDLE has data.");
|
||||||
}
|
}
|
||||||
Err(err) => match err {
|
Err(err) => match err {
|
||||||
imap::error::Error::ConnectionLost => {
|
imap::error::Error::Io(_) | imap::error::Error::ConnectionLost => {
|
||||||
info!(context, "IMAP-IDLE wait cancelled, we will reconnect soon.");
|
info!(context, "IMAP-IDLE wait cancelled, we will reconnect soon.");
|
||||||
self.should_reconnect.store(true, Ordering::Relaxed);
|
self.should_reconnect.store(true, Ordering::Relaxed);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user