summarylogtreecommitdiffstats
path: root/idler_fix.patch
diff options
context:
space:
mode:
authorIngo Meyer2022-03-01 13:14:28 +0100
committerIngo Meyer2022-03-01 13:14:28 +0100
commit2705cca830a4b7ce4c9319e3700edc35f3a6c387 (patch)
treee350fff1106500c62dd438f9bc9c15509e09994c /idler_fix.patch
parent8a05e4515675ce61d49e725b50607c14e3afce42 (diff)
downloadaur-2705cca830a4b7ce4c9319e3700edc35f3a6c387.tar.gz
Add a patch for fixing waiting time after calling the idler stop method
Diffstat (limited to 'idler_fix.patch')
-rw-r--r--idler_fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/idler_fix.patch b/idler_fix.patch
new file mode 100644
index 000000000000..3cdae81e49ec
--- /dev/null
+++ b/idler_fix.patch
@@ -0,0 +1,14 @@
+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):