From 13a58cb49ebc1d0c491433e187213090d01de6f1 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 25 Mar 2022 11:58:59 +0000 Subject: [PATCH] Cleanup: Improved code flow --- src/connection.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/connection.c b/src/connection.c index 5fcb89cf..e91520a1 100644 --- a/src/connection.c +++ b/src/connection.c @@ -715,11 +715,12 @@ static void * process_request_queue (client_queue_t *queue) client_queue_check_ready_wait(queue, QUEUE_READY_TIMEOUT, timeout); while ((node = client_queue_shift_ready(queue, stop))) { - if (!process_request_queue_one(node, timeout)) { - client_queue_add(queue, node); - if (!stop) - stop = node; - } + if (process_request_queue_one(node, timeout)) + continue; + + client_queue_add(queue, node); + if (!stop) + stop = node; } }