VOXEL: reduced code duplication
parent
30c91d7242
commit
1698fc6f10
|
@ -683,8 +683,8 @@ void World::cleanupFutures() {
|
|||
}
|
||||
|
||||
void World::onFrame(long dt) {
|
||||
cleanupFutures();
|
||||
if (_cancelThreads) {
|
||||
cleanupFutures();
|
||||
if (!_futures.empty()) {
|
||||
return;
|
||||
}
|
||||
|
@ -696,8 +696,6 @@ void World::onFrame(long dt) {
|
|||
Log::info("reset the world");
|
||||
});
|
||||
_cancelThreads = false;
|
||||
} else {
|
||||
cleanupFutures();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue