changeset 7352:4f63124e756e HEAD

uncork stream only after syncing to avoid extra writes.
author Timo Sirainen <tss@iki.fi>
date Wed, 05 Mar 2008 02:53:05 +0200
parents 6115fe69094c
children 33304b5f6070
files src/imap/client.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/client.c	Wed Mar 05 02:17:52 2008 +0200
+++ b/src/imap/client.c	Wed Mar 05 02:53:05 2008 +0200
@@ -763,16 +763,16 @@
 			break;
 		}
 	}
-	o_stream_uncork(client->output);
 
 	if (client->output->closed) {
 		client_destroy(client, NULL);
 		return 1;
 	} else {
 		(void)cmd_sync_delayed(client);
+		o_stream_uncork(client->output);
 		client_continue_pending_input(&client);
+		return ret;
 	}
-	return ret;
 }
 
 void clients_init(void)