]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: listener: Remove useless task_queue from manage_global_listener_queue
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Nov 2022 14:16:10 +0000 (15:16 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 17 Nov 2022 14:18:59 +0000 (15:18 +0100)
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.

src/listener.c

index 33a1a9995d36cd34a2cce3f30966e18542c0a16d..6cd365acc81b75fca3a1751c35b382b82c84e278 100644 (file)
@@ -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;
 }