diff options
-rw-r--r-- | task-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/task-utils.c b/task-utils.c index a9bee8f4..e4dcd36b 100644 --- a/task-utils.c +++ b/task-utils.c @@ -67,7 +67,7 @@ void task_stop(struct task_info *info) if (!info) return; - if (info->id > 0) { + if (info->id) { pthread_cancel(info->id); pthread_join(info->id, NULL); info->id = 0; |