mirror of
https://github.com/ONLYOFFICE/Mail.git
synced 2025-04-18 16:44:01 +03:00
ImapSync: remove client on critical error
This commit is contained in:
parent
8313bd1f42
commit
07b50a5e14
@ -511,6 +511,13 @@ public class MailImapClient : IDisposable
|
||||
}
|
||||
|
||||
DeleteSimpleImapClient(simpleImapClient);
|
||||
|
||||
if (simpleImapClients.Count == 0)
|
||||
{
|
||||
_log.DebugMailImapClientDBPipeline($"Deleted last simpleImapClients. Client will destroy.");
|
||||
|
||||
OnCriticalError?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user