diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-07-30 01:39:30 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-07-30 01:39:30 +0200 |
commit | 7a5ef2ffc002e7976fae34d08f296ace993211c8 (patch) | |
tree | 07a543b4d09845bf2946d9b7b23a9436e1a276fc /imapsync | |
parent | 7f7a29ef79915a86d3f5bd3533e3a49ac6f36cb6 (diff) |
Log out before exiting.
Diffstat (limited to 'imapsync')
-rwxr-xr-x | imapsync | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1111,4 +1111,7 @@ while(1) { wait_notifications(900); } -END { cleanup(); } +END { + $_->logout() foreach grep defined, ($lIMAP, $rIMAP); + cleanup(); +} |