blobmsg: drop old comment about json formatting functions
[oweals/libubox.git] / runqueue.c
index 1d9fa4b3a120d1231e9830868b92de686ad653cd..d5719d1f7fdb756afdb5749cbf56d36e686e53c7 100644 (file)
@@ -196,11 +196,10 @@ void runqueue_task_kill(struct runqueue_task *t)
        if (!t->queued)
                return;
 
-       runqueue_task_complete(t);
        if (running && t->type->kill)
                t->type->kill(q, t);
 
-       runqueue_start_next(q);
+       runqueue_task_complete(t);
 }
 
 void runqueue_stop(struct runqueue *q)
@@ -232,7 +231,7 @@ void runqueue_task_complete(struct runqueue_task *t)
        t->cancelled = false;
        if (t->complete)
                t->complete(q, t);
-       runqueue_start_next(t->q);
+       runqueue_start_next(q);
 }
 
 static void