changeset 4994:b7daf0849f27 HEAD

Don't assert-crash if a command is waiting in queue after we've disconnected the client for some reason.
author Timo Sirainen <tss@iki.fi>
date Fri, 05 Jan 2007 20:48:55 +0200
parents 62bbe686dc30
children 1a5a408923f3
files src/imap/client.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/client.c	Fri Jan 05 16:52:13 2007 +0200
+++ b/src/imap/client.c	Fri Jan 05 20:48:55 2007 +0200
@@ -567,7 +567,7 @@
 		t_push();
 		ret = client_handle_next_command(client);
 		t_pop();
-	} while (ret);
+	} while (ret && !client->disconnected);
 	client->handling_input = FALSE;
 	o_stream_uncork(client->output);