From 8634b0030d7aba5f421d00a17aef9440895b8253 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Tue, 14 Jun 2011 11:52:05 +0200 Subject: [PATCH] Always call ui.terminate() 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 Signed-off-by: Nicolas Sebrecht --- offlineimap/init.py | 1 + 1 file changed, 1 insertion(+) 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