dovecot-2.0: imap: Uncork at logout a bit later.

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 9 22:27:13 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/fa911bf1cbee
changeset: 12406:fa911bf1cbee
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 09 20:24:12 2010 +0000
description:
imap: Uncork at logout a bit later.

diffstat:

 src/imap/cmd-logout.c  |  1 -
 src/imap/imap-client.c |  1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r e72ab743b8df -r fa911bf1cbee src/imap/cmd-logout.c
--- a/src/imap/cmd-logout.c	Tue Nov 09 19:48:47 2010 +0000
+++ b/src/imap/cmd-logout.c	Tue Nov 09 20:24:12 2010 +0000
@@ -9,7 +9,6 @@
 	struct client *client = cmd->client;
 
 	client_send_line(client, "* BYE Logging out");
-	o_stream_uncork(client->output);
 
 	if (client->mailbox != NULL) {
 		client_search_updates_free(client);
diff -r e72ab743b8df -r fa911bf1cbee src/imap/imap-client.c
--- a/src/imap/imap-client.c	Tue Nov 09 19:48:47 2010 +0000
+++ b/src/imap/imap-client.c	Tue Nov 09 20:24:12 2010 +0000
@@ -250,6 +250,7 @@
 	i_info("Disconnected: %s %s", reason, client_stats(client));
 	client->disconnected = TRUE;
 	(void)o_stream_flush(client->output);
+	o_stream_uncork(client->output);
 
 	i_stream_close(client->input);
 	o_stream_close(client->output);


More information about the dovecot-cvs mailing list