asyncResourceGatherer: reset pending flag on process

fixes #7
This commit is contained in:
Vaxry 2024-02-19 21:10:31 +00:00
parent 013dfadee7
commit debfe716e8
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ void CAsyncResourceGatherer::asyncAssetSpinLock() {
asyncLoopState.requestMutex.lock(); asyncLoopState.requestMutex.lock();
asyncLoopState.pending = false;
if (asyncLoopState.requests.empty()) { if (asyncLoopState.requests.empty()) {
asyncLoopState.requestMutex.unlock(); asyncLoopState.requestMutex.unlock();
continue; continue;