aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-04-04 14:04:03 +0200
committerRobert Tari <robert@tari.in>2022-04-04 14:04:03 +0200
commit7c0a7dbe25c05b5bf6be67f471c62f6c961f092d (patch)
tree47e9a5569bc66ac48d1ae09a8fc5593692dbf3d3
parent30a122bd280cff496219eba15a48f7fb0381f46f (diff)
parent7458995eee98a239911c0a0f379551adc6bf823b (diff)
downloadayatana-webmail-7c0a7dbe25c05b5bf6be67f471c62f6c961f092d.tar.gz
ayatana-webmail-7c0a7dbe25c05b5bf6be67f471c62f6c961f092d.tar.bz2
ayatana-webmail-7c0a7dbe25c05b5bf6be67f471c62f6c961f092d.zip
Merge branch 'IngoMeyer441-fix/idler-stop'
Attributes GH PR #29: https://github.com/AyatanaIndicators/ayatana-webmail/pull/29
-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):