]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: If client was disconnected while IDLEing (e.g. storage error), it got stuck...
authorTimo Sirainen <tss@iki.fi>
Mon, 31 May 2010 18:15:01 +0000 (19:15 +0100)
committerTimo Sirainen <tss@iki.fi>
Mon, 31 May 2010 18:15:01 +0000 (19:15 +0100)
--HG--
branch : HEAD

src/imap/cmd-idle.c

index 352409c1929565921a1311d0d999c80c2d7d4075..f6397bf7185a3cbec40c153defc2de27f03b86ed 100644 (file)
@@ -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) {