diff options
-rwxr-xr-x | ayatanawebmail/idler.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ayatanawebmail/idler.py b/ayatanawebmail/idler.py index 3e852a1..b6b63b4 100755 --- a/ayatanawebmail/idler.py +++ b/ayatanawebmail/idler.py @@ -23,8 +23,11 @@ class Idler(object): def stop(self): if self.oConnection.oImap is not None: - # Send a NOOP command to interrupt the IDLE mode and free the blocked thread - self.oConnection.oImap.noop() + try: + # Send a NOOP command to interrupt the IDLE mode and free the blocked thread + self.oConnection.oImap.noop() + except: + pass self.oEvent.set() def join(self): |