add missing DLL insert
authorlurchi <lurchi@strangeplace.net>
Sat, 5 Aug 2017 11:38:45 +0000 (13:38 +0200)
committerlurchi <lurchi@strangeplace.net>
Sat, 5 Aug 2017 11:38:45 +0000 (13:38 +0200)
src/util/scheduler.c

index 7a65069a29a46ab1c22dd6baa08b6787bcf84170..3da4eaddbe8cd136c6cb3a8d6a8fd0b201e108e5 100644 (file)
@@ -1829,9 +1829,10 @@ GNUNET_SCHEDULER_add_select (enum GNUNET_SCHEDULER_Priority prio,
                        GNUNET_SCHEDULER_PRIORITY_KEEP) ? current_priority :
                       prio);
   t->lifeness = current_lifeness;
-
+  GNUNET_CONTAINER_DLL_insert (pending_head,
+                               pending_tail,
+                               t);
   scheduler_multi_function_call(t, scheduler_driver->add);
-
   max_priority_added = GNUNET_MAX (max_priority_added,
            t->priority);
   LOG (GNUNET_ERROR_TYPE_DEBUG,