libubox: runqueue: Cancel task timeout when completeing task

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
This commit is contained in:
Helmut Schaa 2014-01-15 15:09:19 +00:00 committed by John Crispin
parent e58fa88e1f
commit bbd846ec2d

View 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;