History

Add some asserts

Zander Otavka committed 10 years ago

Commit 246a8451 parent 43bbe792 files · +2 −0Browse files

Showing the changes to libraries/script-engine/src/ScriptCache.cpp (1 of 2 files). Show all

Unified · Split

libraries/script-engine/src/ScriptCache.cpp+1−0
@@ -167,6 +167,7 @@ void ScriptCache::scriptContentAvailable() { · 166 unmodified lines
167167 Lock lock(_containerLock);
168168 allCallbacks = _contentCallbacks.values(url);
169169 _contentCallbacks.remove(url);
170+ Q_ASSERT(req->getState() == ResourceRequest::Finished);
170171 success = req->getResult() == ResourceRequest::Success;
171172
172173 if (success) {