]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Auth worker: Another try at not aborting a lookup too early.
authorTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2008 22:47:16 +0000 (01:47 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 21 Oct 2008 22:47:16 +0000 (01:47 +0300)
--HG--
branch : HEAD

src/auth/auth-worker-server.c

index 0101fbfb3a44d88d08d0198b9760c696df69d955..13f033949fc3e81bd1b2297449a389180a522d4d 100644 (file)
@@ -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();