mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 18:42:11 +02:00
Add some asserts
This commit is contained in:
parent
43bbe790d6
commit
246a8457e1
2 changed files with 2 additions and 0 deletions
|
@ -462,6 +462,7 @@ int ResourceCache::getPendingRequestCount() {
|
|||
}
|
||||
|
||||
bool ResourceCache::attemptRequest(QSharedPointer<Resource> resource) {
|
||||
Q_ASSERT(!resource.isNull());
|
||||
auto sharedItems = DependencyManager::get<ResourceCacheSharedItems>();
|
||||
|
||||
if (_requestsActive >= _requestLimit) {
|
||||
|
|
|
@ -167,6 +167,7 @@ void ScriptCache::scriptContentAvailable() {
|
|||
Lock lock(_containerLock);
|
||||
allCallbacks = _contentCallbacks.values(url);
|
||||
_contentCallbacks.remove(url);
|
||||
Q_ASSERT(req->getState() == ResourceRequest::Finished);
|
||||
success = req->getResult() == ResourceRequest::Success;
|
||||
|
||||
if (success) {
|
||||
|
|
Loading…
Reference in a new issue