Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9076:73b468723964 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:27 -0400 |
parents | d77225a64128 |
children | 7cb4741f076e |
files | src/imap/client.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/client.c Sun May 24 18:09:12 2009 -0400 +++ b/src/imap/client.c Mon May 25 19:30:27 2009 -0400 @@ -532,8 +532,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; }