From f47ccd5f307d083de8606004d13f6e11e2b53e92 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 28 Dec 2025 20:40:40 +0300 Subject: [PATCH] fix --- src/util/ThreadPool.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/ThreadPool.hpp b/src/util/ThreadPool.hpp index 90b7aad14..4369d2856 100644 --- a/src/util/ThreadPool.hpp +++ b/src/util/ThreadPool.hpp @@ -219,7 +219,7 @@ namespace util { } } - if (onComplete && busyWorkers == 0) { + if (onComplete && busyWorkers == 0 && results.empty()) { std::lock_guard jobsLock(jobsMutex); if (jobs.empty()) { onComplete();