dovecot-2.0: imap: Make sure IDLE isn't broken too early if DONE...

dovecot at dovecot.org dovecot at dovecot.org
Mon Nov 22 21:04:18 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/66a523135836
changeset: 12454:66a523135836
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 22 19:04:13 2010 +0000
description:
imap: Make sure IDLE isn't broken too early if DONE is sent in multiple packets.

diffstat:

 src/imap/cmd-idle.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 3a93121f652a -r 66a523135836 src/imap/cmd-idle.c
--- a/src/imap/cmd-idle.c	Mon Nov 22 18:35:07 2010 +0000
+++ b/src/imap/cmd-idle.c	Mon Nov 22 19:04:13 2010 +0000
@@ -87,11 +87,11 @@
 			client->input_skip_line = FALSE;
 		else {
 			idle_finish(ctx, strcasecmp(line, "DONE") == 0, TRUE);
+			if (!client->disconnected)
+				client_continue_pending_input(client);
 			break;
 		}
 	}
-	if (!client->disconnected && !client->handling_input)
-		client_continue_pending_input(client);
 }
 
 static void idle_client_input(struct cmd_idle_context *ctx)


More information about the dovecot-cvs mailing list