]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: applet: Check applets_active_queue before processing applets queue
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Jun 2017 14:07:01 +0000 (16:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 08:21:29 +0000 (10:21 +0200)
This is useless for now, but it will allow a huge improvement when the
multithreading will be merged.

src/applet.c

index 324dfd3b92e5e46e019da3876771c3abda782cb2..4e70d8c029b26519ae1d11d1b1dc0974cdbe2761 100644 (file)
@@ -31,6 +31,9 @@ void applet_run_active()
        struct stream_interface *si;
        struct list applet_cur_queue = LIST_HEAD_INIT(applet_cur_queue);
 
+       if (!applets_active_queue)
+               return;
+
        curr = LIST_NEXT(&applet_active_queue, typeof(curr), runq);
        while (&curr->runq != &applet_active_queue) {
                next = LIST_NEXT(&curr->runq, typeof(next), runq);