changeset 9359:46277443b90c HEAD

imap: Mailbox closing command shouldn't hang on waiting a delayed sync to finish.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 May 2009 19:30:05 -0400
parents 2784877c567c
children fd3c13b9837b
files src/imap/imap-client.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
 		/* 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;
 	}