changeset 4786:65bbeb211a30 HEAD

If mailbox is changed while syncing is being done, and the second sync's changes aren't fully sent to the client, we hanged (quite rare I think).
author Timo Sirainen <tss@iki.fi>
date Sun, 12 Nov 2006 13:31:42 +0200
parents a18fa2b4bf06
children 62f534a0fd68
files src/imap/cmd-idle.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-idle.c	Sun Nov 12 13:15:38 2006 +0200
+++ b/src/imap/cmd-idle.c	Sun Nov 12 13:31:42 2006 +0200
@@ -196,6 +196,9 @@
 		/* more changes occurred while we were sending changes to
 		   client */
 		idle_sync_now(client->mailbox, ctx);
+		/* NOTE: this recurses back to this function,
+		   so we return here instead of doing everything twice. */
+		return FALSE;
 	}
         client->output_pending = FALSE;