]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
yielded requests go to the head of the list
authorAlan T. DeKok <aland@freeradius.org>
Thu, 15 Dec 2016 15:38:03 +0000 (10:38 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 15 Dec 2016 15:38:03 +0000 (10:38 -0500)
src/util/time.c

index 57e78f3401945b25bd7b0891dad59424caa8c079..48ccdd782c46b1647593576a91046488d5b233e2 100644 (file)
@@ -215,7 +215,7 @@ void fr_time_tracking_yield(fr_time_tracking_t *tt, fr_time_t when, fr_time_trac
         *      Insert this request into the TAIL of the worker's list
         *      of waiting requests.
         */
-       FR_DLIST_INSERT_TAIL(worker->list, tt->list);
+       FR_DLIST_INSERT_HEAD(worker->list, tt->list);
 }