mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 05:26:32 +02:00
cleanup check for resource retry
This commit is contained in:
parent
8cd330f431
commit
19702a9cd4
1 changed files with 3 additions and 4 deletions
|
@ -519,10 +519,9 @@ const int MAX_ATTEMPTS = 8;
|
|||
void Resource::attemptRequest() {
|
||||
_startedLoading = true;
|
||||
|
||||
auto timer = qobject_cast<QTimer*>(sender());
|
||||
if (timer) {
|
||||
qCDebug(networking).nospace() << "Server unavailable for" << _url
|
||||
<< "- retrying asset load after" << timer->interval() << "ms - attempt" << _attempts << " of " << MAX_ATTEMPTS;
|
||||
if (_attempts > 0) {
|
||||
qCDebug(networking) << "Server unavailable for" << _url
|
||||
<< "- retrying asset load - attempt" << _attempts << " of " << MAX_ATTEMPTS;
|
||||
}
|
||||
|
||||
ResourceCache::attemptRequest(_self);
|
||||
|
|
Loading…
Reference in a new issue