summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-01-08 23:33:13 -0400
committerKali Kaneko <kali@leap.se>2014-01-08 23:33:22 -0400
commit80a77efe595215da3ae836771f9dfc5cffd1cfd3 (patch)
tree4d76e43f68407b090576424fd324da0ed92ba917 /src
parentdffaa3c58d12c91e31d5a95d3cf43c00a9ce4604 (diff)
Flag imap session for closing. Fixes: #4925
This will need a more serious investigation, since we're not shutting down all the imap-related objects, but will do for now to prevent access to different accounts while a session is initiated in the MUA. (tested with thunderbird).
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/services/mail/conductor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/bitmask/services/mail/conductor.py b/src/leap/bitmask/services/mail/conductor.py
index addf9bef..875b98ea 100644
--- a/src/leap/bitmask/services/mail/conductor.py
+++ b/src/leap/bitmask/services/mail/conductor.py
@@ -102,6 +102,7 @@ class IMAPControl(object):
# Stop listening on the IMAP port
self.imap_port.stopListening()
# Stop the protocol
+ self.imap_factory.theAccount.closed = True
self.imap_factory.doStop()
def fetch_incoming_mail(self):