Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8475:b64fb26e3b6f HEAD
Auth workers: Don't assert-crash when process's idle timeout hits.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 21 Nov 2008 22:40:48 +0200 |
parents | a24661b372a1 |
children | 9bcc2dd5f17f |
files | src/auth/auth-worker-server.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-worker-server.c Fri Nov 21 22:40:03 2008 +0200 +++ b/src/auth/auth-worker-server.c Fri Nov 21 22:40:48 2008 +0200 @@ -51,7 +51,7 @@ static void auth_worker_idle_timeout(struct auth_worker_connection *conn) { - i_assert(array_count(&conn->requests) == 0); + i_assert(conn->request_count == 0); if (idle_count > 1) auth_worker_destroy(conn, NULL); @@ -278,7 +278,7 @@ static void auth_worker_call_timeout(struct auth_worker_connection *conn) { - i_assert(array_count(&conn->requests) > 0); + i_assert(conn->request_count > 0); auth_worker_destroy(conn, "Lookup timed out"); }