libubox: runqueue: Cancel task timeout when completeing task
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 15 Jan 2014 15:09:19 +0000 (15:09 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 29 Jan 2014 03:32:30 +0000 (03:32 +0000)
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
runqueue.c

index 1784e304b8555188fd6e70a81b1bf37c9344dda0..1d9fa4b3a120d1231e9830868b92de686ad653cd 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;