diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 0a85888..39490a1 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -19,6 +19,8 @@ Changes Bug Fixes --------- +* Fix hang when using Ctrl+C in some cases. + Pending for the next major release ================================== diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py index 4903e39..7edfa37 100644 --- a/offlineimap/accounts.py +++ b/offlineimap/accounts.py @@ -265,10 +265,9 @@ class SyncableAccount(Account): mbnames.write() localrepos.forgetfolders() remoterepos.forgetfolders() + finally: localrepos.holdordropconnections() remoterepos.holdordropconnections() - finally: - pass hook = self.getconf('postsynchook', '') self.callhook(hook)