changeset 8313:284dea506006 HEAD

Auth worker: Another try at not aborting a lookup too early.
author Timo Sirainen <tss@iki.fi>
date Wed, 22 Oct 2008 01:47:16 +0300
parents 963330c3df1e
children 4497c58eaca8
files src/auth/auth-worker-server.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-worker-server.c	Wed Oct 22 01:32:43 2008 +0300
+++ b/src/auth/auth-worker-server.c	Wed Oct 22 01:47:16 2008 +0300
@@ -260,7 +260,7 @@
 			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();