From: Timo Sirainen Date: Tue, 21 Oct 2008 22:47:16 +0000 (+0300) Subject: Auth worker: Another try at not aborting a lookup too early. X-Git-Tag: 1.2.alpha3~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8564e1bc1acc6e23c6cab4b28df9452a3c809d10;p=thirdparty%2Fdovecot%2Fcore.git Auth worker: Another try at not aborting a lookup too early. --HG-- branch : HEAD --- diff --git a/src/auth/auth-worker-server.c b/src/auth/auth-worker-server.c index 0101fbfb3a..13f033949f 100644 --- a/src/auth/auth-worker-server.c +++ b/src/auth/auth-worker-server.c @@ -260,7 +260,7 @@ static void worker_input(struct auth_worker_connection *conn) auth_worker_handle_request(conn, request, line + 1); } - if (conn->requests_left == 0 && array_count(&conn->requests) == 0) { + if (conn->requests_left == 0 && conn->request_count == 0) { auth_worker_destroy(conn, "Max requests limit"); if (idle_count == 0) auth_worker_create();