mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
Log the error before triggering reconnect
This way "Dropping an IMAP connection" message appears after the cause for connection drop.
This commit is contained in:
@@ -198,8 +198,8 @@ async fn fetch_idle(ctx: &Context, connection: &mut Imap, folder_config: Config)
|
||||
.await
|
||||
.context("prepare IMAP connection")
|
||||
{
|
||||
connection.trigger_reconnect(ctx);
|
||||
warn!(ctx, "{:#}", err);
|
||||
connection.trigger_reconnect(ctx);
|
||||
return connection.fake_idle(ctx, Some(watch_folder)).await;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user