diff options
Diffstat (limited to 'mail/src/leap')
-rw-r--r-- | mail/src/leap/mail/imap/fetch.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/src/leap/mail/imap/fetch.py b/mail/src/leap/mail/imap/fetch.py index 1c41813..ee9de3e 100644 --- a/mail/src/leap/mail/imap/fetch.py +++ b/mail/src/leap/mail/imap/fetch.py @@ -93,7 +93,11 @@ class LeapIncomingMail(object): Stops the loop that fetches mail. """ if self._loop: - self._loop.stop() + try: + self._loop.stop() + except AssertionError: + logger.debug("It looks like we tried to stop a " + "loop that was not running.") def _sync_soledad(self): log.msg('syncing soledad...') |