diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-07-23 17:10:34 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-07-23 17:15:38 +0200 |
commit | faa472ccd478bcb900ae6e34e2cb1f6b29a30512 (patch) | |
tree | ca9181b3211d5b98d17fef53d98f9a02e12ac483 /imapsync | |
parent | 847ce3f06147edc314b420030b0d9239153c79a8 (diff) |
wibble
Diffstat (limited to 'imapsync')
-rwxr-xr-x | imapsync | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -752,9 +752,8 @@ sub sync_messages($$) { } - -# Wait for notifications on either IMAP server, up to $timout. Then -# issue a NOOP so the connection doesn't terminate for inactivity. +# Wait up to $timout seconds for notifications on either IMAP server. +# Then issue a NOOP so the connection doesn't terminate for inactivity. sub wait_notifications(;$) { my $timeout = shift // 300; @@ -767,6 +766,7 @@ sub wait_notifications(;$) { if (--$timeout == 0) { $lIMAP->noop(); $rIMAP->noop(); + # might have got updates so exit the loop } } } |