Signed-off-by: John Crispin <blogic@openwrt.org>
runqueue_task_complete(t);
if (running && t->type->kill)
t->type->kill(q, t);
- if (t->complete)
- t->complete(q, t);
runqueue_start_next(q);
}
void runqueue_task_complete(struct runqueue_task *t)
{
+ struct runqueue *q = t->q;
+
if (!t->queued)
return;
t->queued = false;
t->running = false;
t->cancelled = false;
+ if (t->complete)
+ t->complete(q, t);
runqueue_start_next(t->q);
}