]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-client-host - Fix determination of whether host is idle.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 20 Sep 2020 21:16:00 +0000 (23:16 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 7 Oct 2020 11:58:33 +0000 (14:58 +0300)
src/lib-http/http-client-host.c

index 2168795b68c46578acbfa3b36c775f40d881418d..3cbe6b086e555caa9ec784f04153b4bd23de4162 100644 (file)
@@ -461,7 +461,7 @@ static bool http_client_host_is_idle(struct http_client_host *host)
        array_foreach(&host->queues, queue_idx)
                requests += http_client_queue_requests_active(*queue_idx);
 
-       return (requests > 0);
+       return (requests == 0);
 }
 
 void http_client_host_check_idle(struct http_client_host *host)