Fix picDownloadFinished not being called on failure (#5982)

This commit is contained in:
RickyRister 2025-06-13 05:46:58 -07:00 committed by GitHub
parent 33946e61bb
commit 39df168891
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,6 +121,8 @@ QNetworkReply *PictureLoaderWorker::makeRequest(const QUrl &url, PictureLoaderWo
}
} else if (reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt() == 429) {
qInfo() << "Too many requests.";
} else {
worker->picDownloadFinished(reply);
}
reply->deleteLater();
});