Fix bug where _requestLimit is stuck at 0

This commit is contained in:
Atlante45 2015-08-28 22:08:30 +02:00
parent a448eb9109
commit 729fd96539

View file

@ -402,7 +402,7 @@ void Resource::handleReplyFinished() {
const int MAX_ATTEMPTS = 8;
const int BASE_DELAY_MS = 1000;
if (++_attempts < MAX_ATTEMPTS) {
QTimer::singleShot(BASE_DELAY_MS * (int)pow(2.0, _attempts), this, SLOT(attemptRequest()));
QTimer::singleShot(BASE_DELAY_MS * (int)pow(2.0, _attempts), this, &Resource::makeRequest);
retry = true;
break;
}