diff --git a/src/dusk/asset/asset.c b/src/dusk/asset/asset.c index 161a449e..b3f747cb 100644 --- a/src/dusk/asset/asset.c +++ b/src/dusk/asset/asset.c @@ -89,6 +89,7 @@ errorret_t assetRequireLoaded(assetentry_t *entry) { // Not loaded, just spin the wheel while(entry->state != ASSET_ENTRY_STATE_LOADED) { + usleep(1000); errorChain(assetUpdate()); } @@ -268,6 +269,9 @@ void assetUpdateAsync(thread_t *thread) { continue; } } while(loading < ASSET.loading + ASSET_LOADING_COUNT_MAX); + + if(threadShouldStop(thread)) break; + usleep(1000); } }