examples: add shunit2 tests for json_script
[project/libubox.git] / runqueue.c
index 1784e30..1d9fa4b 100644 (file)
@@ -224,6 +224,8 @@ void runqueue_task_complete(struct runqueue_task *t)
        if (t->running)
                t->q->running_tasks--;
 
+       uloop_timeout_cancel(&t->timeout);
+
        safe_list_del(&t->list);
        t->queued = false;
        t->running = false;