mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
if _reply is NULL, it doesn't make sense to worry about if it's finished loading or not.
This commit is contained in:
parent
68e01d2bd9
commit
e6023c59c1
1 changed files with 2 additions and 1 deletions
|
@ -241,7 +241,7 @@ float Resource::getLoadPriority() {
|
|||
}
|
||||
|
||||
void Resource::refresh() {
|
||||
if (_reply == nullptr && !(_loaded || _failedToLoad)) {
|
||||
if (_reply && !(_loaded || _failedToLoad)) {
|
||||
return;
|
||||
}
|
||||
if (_reply) {
|
||||
|
@ -351,6 +351,7 @@ void Resource::maybeRefresh() {
|
|||
QDateTime lastModifiedOld = metaData.lastModified();
|
||||
if (lastModified.isValid() && lastModifiedOld.isValid() &&
|
||||
lastModifiedOld == lastModified) {
|
||||
qCDebug(networking) << "Using cached version of" << _url.fileName();
|
||||
// We don't need to update, return
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue