dovecot-2.0: imap: Mailbox closing command shouldn't hang on wai...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 26 02:30:49 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/46277443b90c
changeset: 9359:46277443b90c
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 25 19:30:05 2009 -0400
description:
imap: Mailbox closing command shouldn't hang on waiting a delayed sync to finish.

diffstat:

1 file changed, 4 insertions(+), 1 deletion(-)
src/imap/imap-client.c |    5 ++++-

diffs (16 lines):

diff -r 2784877c567c -r 46277443b90c src/imap/imap-client.c
--- a/src/imap/imap-client.c	Mon May 25 19:06:40 2009 -0400
+++ b/src/imap/imap-client.c	Mon May 25 19:30:05 2009 -0400
@@ -557,8 +557,11 @@ void client_continue_pending_input(struc
 
 		/* the command is waiting for existing ambiguity causing
 		   commands to finish. */
-		if (client_command_check_ambiguity(cmd))
+		if (client_command_check_ambiguity(cmd)) {
+			/* we could be waiting for existing sync to finish */
+			cmd_sync_delayed(client);
 			return;
+		}
 		cmd->state = CLIENT_COMMAND_STATE_WAIT_INPUT;
 	}
 


More information about the dovecot-cvs mailing list