From: Christopher Faulet Date: Thu, 17 Nov 2022 14:16:10 +0000 (+0100) Subject: CLEANUP: listener: Remove useless task_queue from manage_global_listener_queue X-Git-Tag: v2.7-dev9~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddfb50eec68bf0cf0ee6d164054166ca8a8ce5d9;p=thirdparty%2Fhaproxy.git CLEANUP: listener: Remove useless task_queue from manage_global_listener_queue At the end of manage_global_listener_queue(), the task expire date is set to TICK_ETERNITY. Thus, it is useless to call task_queue() just after because the function does nothing in this case. --- diff --git a/src/listener.c b/src/listener.c index 33a1a9995d..6cd365acc8 100644 --- a/src/listener.c +++ b/src/listener.c @@ -1301,7 +1301,6 @@ struct task *manage_global_listener_queue(struct task *t, void *context, unsigne HA_RWLOCK_WRLOCK(LISTENER_LOCK, &global_listener_rwlock); t->expire = TICK_ETERNITY; HA_RWLOCK_WRUNLOCK(LISTENER_LOCK, &global_listener_rwlock); - task_queue(t); return t; }