mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix
This commit is contained in:
parent
b8bf249d1b
commit
f47ccd5f30
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ namespace util {
|
|||
}
|
||||
}
|
||||
|
||||
if (onComplete && busyWorkers == 0) {
|
||||
if (onComplete && busyWorkers == 0 && results.empty()) {
|
||||
std::lock_guard<std::mutex> jobsLock(jobsMutex);
|
||||
if (jobs.empty()) {
|
||||
onComplete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue