aboutsummaryrefslogtreecommitdiffstats
path: root/imapsync
diff options
context:
space:
mode:
Diffstat (limited to 'imapsync')
-rwxr-xr-ximapsync5
1 files changed, 4 insertions, 1 deletions
diff --git a/imapsync b/imapsync
index 45b214f..b0226c3 100755
--- a/imapsync
+++ b/imapsync
@@ -1111,4 +1111,7 @@ while(1) {
wait_notifications(900);
}
-END { cleanup(); }
+END {
+ $_->logout() foreach grep defined, ($lIMAP, $rIMAP);
+ cleanup();
+}