Mercurial > dovecot > core-2.2
changeset 14240:3b328ffffdd4
auth worker: reset idle time after running a command, not before.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 27 Feb 2012 16:53:50 +0200 |
parents | 5074680f321a |
children | 07fc8baa0c9b |
files | src/auth/auth-worker-client.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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); }