changeset 7212:2ed72512334b HEAD

If SEARCH wasn't handled in one run, it may have hanged.
author Timo Sirainen <tss@iki.fi>
date Mon, 04 Feb 2008 18:53:34 +0200
parents 83fb5f84a270
children 45bfc162a43c
files src/imap/cmd-search.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-search.c	Mon Feb 04 11:21:50 2008 +0200
+++ b/src/imap/cmd-search.c	Mon Feb 04 18:53:34 2008 +0200
@@ -134,10 +134,10 @@
 
 	if (!finished)
 		(void)client_handle_unfinished_cmd(cmd);
-	else {
+	else
 		client_command_free(cmd);
-		client_continue_pending_input(&client);
-	}
+	(void)cmd_sync_delayed(client);
+	client_continue_pending_input(&client);
 }
 
 bool cmd_search(struct client_command_context *cmd)