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.
This commit is contained in:
Christopher Faulet 2017-06-27 16:07:01 +02:00 committed by Willy Tarreau
parent 8fe4891b11
commit 6c57dc9145
1 changed files with 3 additions and 0 deletions

View 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);