mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 12:24:01 +02:00
add back on fail when server unavailable
This commit is contained in:
parent
3a8c2144bf
commit
8cd330f431
1 changed files with 3 additions and 0 deletions
|
@ -615,6 +615,9 @@ void Resource::handleReplyFinished() {
|
|||
if (_attempts++ < MAX_ATTEMPTS) {
|
||||
auto waitTime = BASE_DELAY_MS * (int)pow(2.0, _attempts);
|
||||
|
||||
qCDebug(networking) << "Server unavailable for" << _url << "- may retry in" << waitTime << "ms"
|
||||
<< "if resource is still needed";
|
||||
|
||||
QTimer::singleShot(waitTime, this, &Resource::attemptRequest);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue