mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +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
|
.await
|
||||||
.context("prepare IMAP connection")
|
.context("prepare IMAP connection")
|
||||||
{
|
{
|
||||||
connection.trigger_reconnect(ctx);
|
|
||||||
warn!(ctx, "{:#}", err);
|
warn!(ctx, "{:#}", err);
|
||||||
|
connection.trigger_reconnect(ctx);
|
||||||
return connection.fake_idle(ctx, Some(watch_folder)).await;
|
return connection.fake_idle(ctx, Some(watch_folder)).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user