# HG changeset patch # User Timo Sirainen # Date 1204678385 -7200 # Node ID 4f63124e756ececa1cf0007ce1694efba8ea0616 # Parent 6115fe69094cb39766fcbd07244b57e8e588f54c uncork stream only after syncing to avoid extra writes. diff -r 6115fe69094c -r 4f63124e756e src/imap/client.c --- 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)