mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
Fix picDownloadFinished not being called on failure (#5982)
This commit is contained in:
parent
33946e61bb
commit
39df168891
1 changed files with 2 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ QNetworkReply *PictureLoaderWorker::makeRequest(const QUrl &url, PictureLoaderWo
|
||||||
}
|
}
|
||||||
} else if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == 429) {
|
} else if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == 429) {
|
||||||
qInfo() << "Too many requests.";
|
qInfo() << "Too many requests.";
|
||||||
|
} else {
|
||||||
|
worker->picDownloadFinished(reply);
|
||||||
}
|
}
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue