dovecot-2.1: auth worker: reset idle time after running a comman...

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 27 16:54:03 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/3b328ffffdd4
changeset: 14204:3b328ffffdd4
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 27 16:53:50 2012 +0200
description:
auth worker: reset idle time after running a command, not before.

diffstat:

 src/auth/auth-worker-client.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 5074680f321a -r 3b328ffffdd4 src/auth/auth-worker-client.c
--- a/src/auth/auth-worker-client.c	Mon Feb 27 16:52:44 2012 +0200
+++ b/src/auth/auth-worker-client.c	Mon Feb 27 16:53:50 2012 +0200
@@ -596,9 +596,6 @@
 	char *line;
 	bool ret;
 
-	if (client->to_idle != NULL)
-		timeout_reset(client->to_idle);
-
 	switch (i_stream_read(client->input)) {
 	case 0:
 		return;
@@ -656,6 +653,8 @@
 			break;
 		}
 	}
+	if (client->to_idle != NULL)
+		timeout_reset(client->to_idle);
 	auth_worker_client_unref(&client);
 }
 


More information about the dovecot-cvs mailing list