mirror of
https://github.com/pulb/mailnag.git
synced 2026-03-08 09:40:11 +01:00
dispose current connection on any error (related to #186)
This commit is contained in:
@@ -175,7 +175,8 @@ class IMAPMailboxBackend(MailboxBackend):
|
||||
# idle callback (runs on a further thread)
|
||||
def _idle_callback(args):
|
||||
# check if the connection has been reset by provider
|
||||
if (args[2] != None) and (args[2][0] is self._conn.abort):
|
||||
aborted = args[2] # (typ, val)
|
||||
if aborted is not None:
|
||||
# conn has already been closed, don't try to close it again
|
||||
# self._conn.close() # (calls idle_callback)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user