diff options
Diffstat (limited to 'task-utils.c')
-rw-r--r-- | task-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/task-utils.c b/task-utils.c index 58f51950..a4017ff2 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) { |