From: Timo Sirainen Date: Mon, 31 May 2010 18:15:01 +0000 (+0100) Subject: imap: If client was disconnected while IDLEing (e.g. storage error), it got stuck... X-Git-Tag: 2.0.beta6~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74c8ef6b561e8e9f486367d0d656b80acd372e03;p=thirdparty%2Fdovecot%2Fcore.git imap: If client was disconnected while IDLEing (e.g. storage error), it got stuck instead. --HG-- branch : HEAD --- diff --git a/src/imap/cmd-idle.c b/src/imap/cmd-idle.c index 352409c192..f6397bf718 100644 --- a/src/imap/cmd-idle.c +++ b/src/imap/cmd-idle.c @@ -207,6 +207,7 @@ static bool cmd_idle_continue(struct client_command_context *cmd) if (client->output->closed) { idle_finish(ctx, FALSE, FALSE); + client_destroy(client, NULL); return TRUE; } if (client->io == NULL) {