diff options
author | Robert Tari <robert@tari.in> | 2022-03-02 05:03:17 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2022-03-02 05:03:17 +0100 |
commit | 4e8949fd44e4bdaf0dd8974b7581f20a5c37b0f3 (patch) | |
tree | abd348e80aa778c675dccb3a99f80204bf77affb | |
parent | f19ae5504847aae3336a4f352fd39d5d134f7199 (diff) | |
parent | aeb27d70ecd4e2728337cca66d39f93a48e6ca20 (diff) | |
download | ayatana-webmail-4e8949fd44e4bdaf0dd8974b7581f20a5c37b0f3.tar.gz ayatana-webmail-4e8949fd44e4bdaf0dd8974b7581f20a5c37b0f3.tar.bz2 ayatana-webmail-4e8949fd44e4bdaf0dd8974b7581f20a5c37b0f3.zip |
Merge branch 'IngoMeyer441-fix/blocked-idler'
Attributes GH PR #27: https://github.com/AyatanaIndicators/ayatana-webmail/pull/27
-rwxr-xr-x | ayatanawebmail/idler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ayatanawebmail/idler.py b/ayatanawebmail/idler.py index 8f956ea..3e852a1 100755 --- a/ayatanawebmail/idler.py +++ b/ayatanawebmail/idler.py @@ -22,6 +22,9 @@ 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() self.oEvent.set() def join(self): |