Showing the changes to libraries/networking/src/ResourceCache.cpp (1 of 1 file). Show all
Unified · Split
| @@ -64,9 +64,12 @@ void ResourceCache::clearATPAssets() { · 63 unmodified lines | |||
| 64 | } | 64 | } |
| 65 | { | 65 | { |
| 66 | QWriteLocker locker(&_resourcesToBeGottenLock); | 66 | QWriteLocker locker(&_resourcesToBeGottenLock); |
| 67 | for (auto& url : _resourcesToBeGotten) { | 67 | auto it = _resourcesToBeGotten.begin(); |
| 68 | if (url.scheme() == URL_SCHEME_ATP) { | 68 | while (it != _resourcesToBeGotten.end()) { |
| 69 | _resourcesToBeGotten.removeAll(url); | 69 | if (it->scheme() == URL_SCHEME_ATP) { |
| 70 | it = _resourcesToBeGotten.erase(it); | ||
| 71 | } else { | ||
| 72 | ++it; | ||
| 70 | } | 73 | } |
| 71 | } | 74 | } |
| 72 | } | 75 | } |