Message ID | 7773bc3eb2de3b4a5be3ac1ae255331b93fe410f.1443074502.git.silvio.fricke@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/task-utils.c b/task-utils.c index 58f5195..a4017ff 100644 --- a/task-utils.c +++ b/task-utils.c @@ -51,7 +51,7 @@ int task_start(struct task_info *info) info->private_data); if (ret) - info->id = -1; + info->id = 0; return ret; } @@ -64,7 +64,7 @@ void task_stop(struct task_info *info) if (info->id > 0) { pthread_cancel(info->id); pthread_join(info->id, NULL); - info->id = -1; + info->id = 0; } if (info->periodic.timer_fd) {
Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com> --- task-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)