aboutsummaryrefslogtreecommitdiffstats
path: root/imapsync
diff options
context:
space:
mode:
Diffstat (limited to 'imapsync')
-rwxr-xr-ximapsync6
1 files changed, 3 insertions, 3 deletions
diff --git a/imapsync b/imapsync
index 5be570e..4ef47b3 100755
--- a/imapsync
+++ b/imapsync
@@ -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
}
}
}