changeset 7266:c1e18e979ac3 HEAD

Assert-crashfix if IDLE finishes immediately.
author Timo Sirainen <tss@iki.fi>
date Sun, 17 Feb 2008 14:38:18 +0200
parents 36da161ecc66
children 0444707aa95c
files src/imap/cmd-idle.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/cmd-idle.c	Sun Feb 17 14:30:39 2008 +0200
+++ b/src/imap/cmd-idle.c	Sun Feb 17 14:38:18 2008 +0200
@@ -55,7 +55,6 @@
 	o_stream_uncork(client->output);
 	if (free_cmd)
 		client_command_free(ctx->cmd);
-	client_continue_pending_input(&client);
 }
 
 static void idle_client_input(struct cmd_idle_context *ctx)
@@ -74,6 +73,7 @@
 	case -2:
 		client->input_skip_line = TRUE;
 		idle_finish(ctx, FALSE, TRUE);
+		client_continue_pending_input(&client);
 		return;
 	}
 
@@ -89,6 +89,7 @@
 			client->input_skip_line = FALSE;
 		else {
 			idle_finish(ctx, strcmp(line, "DONE") == 0, TRUE);
+			client_continue_pending_input(&client);
 			break;
 		}
 	}