changeset 8309:b8b75dcb3531 HEAD

Auth worker: Make sure we don't abort a lookup too early.
author Timo Sirainen <tss@iki.fi>
date Wed, 22 Oct 2008 01:07:48 +0300
parents 9c7c9fa381d4
children 2e62e212f8a1
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:07:36 2008 +0300
+++ b/src/auth/auth-worker-server.c	Wed Oct 22 01:07:48 2008 +0300
@@ -239,7 +239,7 @@
 			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();