From 7387c7022836afdab008bffe1a22000e83e91b55 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 1 Apr 2021 16:37:24 -0400 Subject: [PATCH] skip listeners where all IDs are used --- src/main/listen.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/listen.c b/src/main/listen.c index f470047d96..f2820b1954 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -3841,8 +3841,14 @@ int listen_coa_find(REQUEST *request, char const *key) for (this = coa_key->first; this != NULL; this = this->next_key) { - if (!found && (this->num_ids_used < 256)) { - found = this; + if (!found) { + if (this->num_ids_used < 256) { + found = this; + } + + /* + * Skip listeners which have all used IDs. + */ continue; } -- 2.47.2