From 51e64bb24b693a7df9624e350970a8c0dba567ea Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 22 Oct 2008 01:07:48 +0300 Subject: [PATCH] Auth worker: Make sure we don't abort a lookup too early. --HG-- branch : HEAD --- src/auth/auth-worker-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/auth-worker-server.c b/src/auth/auth-worker-server.c index dd25fba611..3b61275b74 100644 --- a/src/auth/auth-worker-server.c +++ b/src/auth/auth-worker-server.c @@ -239,7 +239,7 @@ static void worker_input(struct auth_worker_connection *conn) auth_worker_handle_request(conn, request, line + 1); } - if (conn->requests_left == 0) { + if (conn->requests_left == 0 && array_count(&conn->requests) == 0) { auth_worker_destroy(conn, "Max requests limit"); if (idle_count == 0) auth_worker_create(); -- 2.47.3