Skip to content

Commit 366b71d

Browse files
shinrichzwoop
authored andcommitted
Fix has_consumer_besides_client to deal with no clients (#7685)
(cherry picked from commit 09e7283)
1 parent 768fc8a commit 366b71d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

proxy/http/HttpTunnel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ HttpTunnel::has_cache_writer() const
521521
inline bool
522522
HttpTunnel::has_consumer_besides_client() const
523523
{
524-
bool res = true;
524+
bool res = false; // case of no consumers
525525

526526
for (const auto &consumer : consumers) {
527527
if (!consumer.alive) {

0 commit comments

Comments
 (0)