Achievements: Use retryable client error status code

This commit is contained in:
Stenzek
2023-11-06 19:49:30 +10:00
parent f62a3ffbfa
commit 3c6b6c5770
5 changed files with 20 additions and 14 deletions

View File

@ -1169,7 +1169,7 @@ bool GameList::DownloadCovers(const std::vector<std::string>& url_templates, boo
downloader->CreateRequest(
std::move(url), [use_serial, &save_callback, entry_path = std::move(entry_path), filename = std::move(filename)](
s32 status_code, std::string content_type, Common::HTTPDownloader::Request::Data data) {
if (status_code != Common::HTTPDownloader::HTTP_OK || data.empty())
if (status_code != Common::HTTPDownloader::HTTP_STATUS_OK || data.empty())
return;
std::unique_lock lock(s_mutex);