fix offline: remove deadlocking syncShutdownGracefully from deinit, limit flag sync range
- remove deinit from IMAPConnection, SMTPConnection — syncShutdownGracefully blocks and deadlocks if called on NIO event loop thread - limit reconcileFlags to last 500 UIDs to avoid overwhelming the connection Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,10 +19,6 @@ actor SMTPConnection {
|
||||
self.responseHandler = SMTPResponseHandler()
|
||||
}
|
||||
|
||||
deinit {
|
||||
try? group.syncShutdownGracefully()
|
||||
}
|
||||
|
||||
func connect() async throws -> SMTPResponse {
|
||||
let handler = responseHandler
|
||||
let hostname = host
|
||||
|
||||
Reference in New Issue
Block a user