summarylogtreecommitdiffstats
path: root/idler_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'idler_fix.patch')
-rw-r--r--idler_fix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/idler_fix.patch b/idler_fix.patch
new file mode 100644
index 000000000000..fdb9f371c1f3
--- /dev/null
+++ b/idler_fix.patch
@@ -0,0 +1,17 @@
+diff --git a/ayatanawebmail/idler.py b/ayatanawebmail/idler.py
+index 8f956ea..b6b63b4 100755
+--- a/ayatanawebmail/idler.py
++++ b/ayatanawebmail/idler.py
+@@ -22,6 +22,12 @@ class Idler(object):
+
+ def stop(self):
+
++ if self.oConnection.oImap is not None:
++ 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):