mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 22:10:32 +02:00
don't save ATP requests to cache if they are range requests
This commit is contained in:
parent
11ed8c9ce1
commit
945952d511
1 changed files with 4 additions and 2 deletions
|
@ -114,9 +114,11 @@ void AssetRequest::start() {
|
||||||
_totalReceived += data.size();
|
_totalReceived += data.size();
|
||||||
emit progress(_totalReceived, data.size());
|
emit progress(_totalReceived, data.size());
|
||||||
|
|
||||||
|
if (!_byteRange.isSet()) {
|
||||||
saveToCache(getUrl(), data);
|
saveToCache(getUrl(), data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (_error != NoError) {
|
if (_error != NoError) {
|
||||||
qCWarning(asset_client) << "Got error retrieving asset" << _hash << "- error code" << _error;
|
qCWarning(asset_client) << "Got error retrieving asset" << _hash << "- error code" << _error;
|
||||||
|
|
Loading…
Reference in a new issue