mirror of
https://github.com/overte-org/overte.git
synced 2025-07-29 13:10:09 +02:00
lock weak resource
This commit is contained in:
parent
9d5d4c52c0
commit
1470170296
1 changed files with 4 additions and 1 deletions
|
@ -636,7 +636,10 @@ void Resource::attemptRequest() {
|
||||||
<< "- retrying asset load - attempt" << _attempts << " of " << MAX_ATTEMPTS;
|
<< "- retrying asset load - attempt" << _attempts << " of " << MAX_ATTEMPTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
ResourceCache::attemptRequest(_self);
|
auto self = _self.lock();
|
||||||
|
if (self) {
|
||||||
|
ResourceCache::attemptRequest(self);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Resource::finishedLoading(bool success) {
|
void Resource::finishedLoading(bool success) {
|
||||||
|
|
Loading…
Reference in a new issue