aboutsummaryrefslogtreecommitdiff
path: root/ayatanawebmail/idler.py
diff options
context:
space:
mode:
Diffstat (limited to 'ayatanawebmail/idler.py')
-rwxr-xr-xayatanawebmail/idler.py7
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):