[PATCH 2/3] Always call ui.terminate()

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Jun 14 10:52:05 BST 2011


I discovered that we do not run ui.terminate in all circumstances, so
make sure that we call with properly at the end of each run (whether in
threaded or single-thread mode).

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 offlineimap/init.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/offlineimap/init.py b/offlineimap/init.py
index 7258365..93b7224 100644
--- a/offlineimap/init.py
+++ b/offlineimap/init.py
@@ -343,6 +343,7 @@ class OfflineImap:
                 t.start()
                 threadutil.exitnotifymonitorloop(threadutil.threadexited)
 
+            ui.terminate()
         except KeyboardInterrupt:
             ui.terminate(1, errormsg = 'CTRL-C pressed, aborting...')
             return
-- 
1.7.4.1





More information about the OfflineIMAP-project mailing list