summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services/mail/conductor.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-11-12 23:28:17 -0200
committerKali Kaneko <kali@leap.se>2013-11-12 23:28:17 -0200
commit19df4a679664e76874e970813599c13c94dfd745 (patch)
tree1759d80f209b80349612bec741659034267c6c10 /src/leap/bitmask/services/mail/conductor.py
parent1fb82f0ad4a2a397e4b938748e58a64d057599e4 (diff)
re-raise the exceptions on init as expected
Diffstat (limited to 'src/leap/bitmask/services/mail/conductor.py')
-rw-r--r--src/leap/bitmask/services/mail/conductor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/mail/conductor.py b/src/leap/bitmask/services/mail/conductor.py
index a9621b13..addf9bef 100644
--- a/src/leap/bitmask/services/mail/conductor.py
+++ b/src/leap/bitmask/services/mail/conductor.py
@@ -98,6 +98,7 @@ class IMAPControl(object):
logger.debug('Stopping imap service.')
# Stop the loop call in the fetcher
self.imap_service.stop()
+ self.imap_service = None
# Stop listening on the IMAP port
self.imap_port.stopListening()
# Stop the protocol
@@ -107,7 +108,6 @@ class IMAPControl(object):
"""
Fetches incoming mail.
"""
- # TODO have a mutex over fetch operation.
if self.imap_service:
logger.debug('Client connected, fetching mail...')
self.imap_service.fetch()