changeset 3394:30099e1ccf97 HEAD

Small optimization
author Timo Sirainen <tss@iki.fi>
date Sat, 28 May 2005 14:20:49 +0300
parents 2e7359e17b4c
children 5573554dce0c
files src/pop3/client.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3/client.c	Sat May 28 14:18:49 2005 +0300
+++ b/src/pop3/client.c	Sat May 28 14:20:49 2005 +0300
@@ -382,10 +382,11 @@
 
 	client->last_output = ioloop_time;
 
-	o_stream_cork(client->output);
-	if (client->cmd != NULL)
+	if (client->cmd != NULL) {
+		o_stream_cork(client->output);
 		client->cmd(client);
-	o_stream_uncork(client->output);
+		o_stream_uncork(client->output);
+	}
 
 	if (client->cmd == NULL) {
 		if (o_stream_get_buffer_used_size(client->output) <