changeset 7142:58cb2c6f90c7 HEAD

"Disconnected for inactivity in reading our output" happened after a command had already finished.
author Timo Sirainen <tss@iki.fi>
date Thu, 10 Jan 2008 14:15:49 +0200
parents ead08ca27435
children 81d7093fb892
files src/imap/client.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/client.c	Thu Jan 10 05:11:09 2008 +0200
+++ b/src/imap/client.c	Thu Jan 10 14:15:49 2008 +0200
@@ -442,6 +442,8 @@
 	if (client->command_queue == NULL) {
 		/* no commands left in the queue, we can clear the pool */
 		p_clear(client->command_pool);
+		if (client->to_idle_output != NULL)
+			timeout_remove(&client->to_idle_output);
 	}
 }