From: Christopher Faulet Date: Tue, 27 Jun 2017 14:07:01 +0000 (+0200) Subject: MINOR: applet: Check applets_active_queue before processing applets queue X-Git-Tag: v1.8-dev3~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c57dc9145f05ea3be76bba588e2a4d8e2ed40b7;p=thirdparty%2Fhaproxy.git MINOR: applet: Check applets_active_queue before processing applets queue This is useless for now, but it will allow a huge improvement when the multithreading will be merged. --- diff --git a/src/applet.c b/src/applet.c index 324dfd3b92..4e70d8c029 100644 --- a/src/applet.c +++ b/src/applet.c @@ -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);