diff src/imap/cmd-list.c @ 7148:5e3188213724 HEAD

Added "command state" for running commands. Use it instead of some bitfields to test for the current state.
author Timo Sirainen <tss@iki.fi>
date Sat, 12 Jan 2008 06:46:28 +0200
parents 7ed926ed7aa4
children e6693a0ec8e1
line wrap: on
line diff
--- a/src/imap/cmd-list.c	Fri Jan 11 07:07:09 2008 +0200
+++ b/src/imap/cmd-list.c	Sat Jan 12 06:46:28 2008 +0200
@@ -852,7 +852,7 @@
 
 		if (!cmd_list_continue(cmd)) {
 			/* unfinished */
-			cmd->output_pending = TRUE;
+			cmd->state = CLIENT_COMMAND_STATE_WAIT_OUTPUT;
 			cmd->func = cmd_list_continue;
 			return FALSE;
 		}