changeset 6570:86e964111b1f HEAD

Don't assert-crash if client disconnects while IDLEing.
author Timo Sirainen <tss@iki.fi>
date Sat, 20 Oct 2007 20:55:27 +0300
parents b7d8695d864d
children ed09701ff3d0
files src/imap/client.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/client.c	Sat Oct 20 20:51:30 2007 +0300
+++ b/src/imap/client.c	Sat Oct 20 20:55:27 2007 +0300
@@ -449,7 +449,8 @@
 	i_assert(!client->handling_input);
 
 	if (client->disconnected) {
-		client_destroy(client, NULL);
+		if (!client->destroyed)
+			client_destroy(client, NULL);
 		*_client = NULL;
 		return;
 	}