diff options
author | Ingo Meyer | 2022-04-04 13:16:55 +0200 |
---|---|---|
committer | Ingo Meyer | 2022-04-04 13:16:55 +0200 |
commit | 14df3c8f7ea4a54c1d10f953f7df606ee67ffd1f (patch) | |
tree | a0f617e7b2d3a0836a321b0490ca672b7d2198c4 /idler_fix.patch | |
parent | c1f54547672636bd2ff037ff2eae2d26883114d8 (diff) | |
download | aur-14df3c8f7ea4a54c1d10f953f7df606ee67ffd1f.tar.gz |
Improve the `idler_fix` patch
Diffstat (limited to 'idler_fix.patch')
-rw-r--r-- | idler_fix.patch | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/idler_fix.patch b/idler_fix.patch index 3cdae81e49ec..fdb9f371c1f3 100644 --- a/idler_fix.patch +++ b/idler_fix.patch @@ -1,14 +1,17 @@ diff --git a/ayatanawebmail/idler.py b/ayatanawebmail/idler.py -index 8f956ea..3e852a1 100755 +index 8f956ea..b6b63b4 100755 --- a/ayatanawebmail/idler.py +++ b/ayatanawebmail/idler.py -@@ -22,6 +22,9 @@ class Idler(object): +@@ -22,6 +22,12 @@ 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): |