From: Helmut Schaa Date: Wed, 15 Jan 2014 15:09:19 +0000 (+0000) Subject: libubox: runqueue: Cancel task timeout when completeing task X-Git-Url: http://git.openwrt.org/?p=project%2Flibubox.git;a=commitdiff_plain;h=bbd846ec2d72b2629758b69dc122ac0b0f2c3e4b libubox: runqueue: Cancel task timeout when completeing task Signed-off-by: Helmut Schaa --- diff --git a/runqueue.c b/runqueue.c index 1784e30..1d9fa4b 100644 --- a/runqueue.c +++ b/runqueue.c @@ -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;