From b89083412e4572f707014dacbda777b0aeb2e9e5 Mon Sep 17 00:00:00 2001 From: Susan Hinrichs Date: Mon, 5 Apr 2021 23:42:38 +0000 Subject: [PATCH] Fix has_consumer_besides_client to deal with no clients --- proxy/http/HttpTunnel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/http/HttpTunnel.h b/proxy/http/HttpTunnel.h index 3d80d2b1540..d73fc0c48fc 100644 --- a/proxy/http/HttpTunnel.h +++ b/proxy/http/HttpTunnel.h @@ -520,7 +520,7 @@ HttpTunnel::has_cache_writer() const inline bool HttpTunnel::has_consumer_besides_client() const { - bool res = true; + bool res = false; // case of no consumers for (const auto &consumer : consumers) { if (!consumer.alive) {