summaryrefslogtreecommitdiffstats
path: root/misc/thread_pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/thread_pool.c')
-rw-r--r--misc/thread_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/thread_pool.c b/misc/thread_pool.c
index f57dc8cfcf..e20d9d07e6 100644
--- a/misc/thread_pool.c
+++ b/misc/thread_pool.c
@@ -71,7 +71,7 @@ static MP_THREAD_VOID worker_thread(void *arg)
if (pool->num_threads > pool->min_threads) {
if (!destroy_deadline)
- destroy_deadline = mp_time_ns_add(mp_time_ns(), DESTROY_TIMEOUT);
+ destroy_deadline = mp_time_ns() + MP_TIME_S_TO_NS(DESTROY_TIMEOUT);
if (mp_cond_timedwait_until(&pool->wakeup, &pool->lock, destroy_deadline))
got_timeout = pool->num_threads > pool->min_threads;
} else {