mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:24:24 +02:00
Merge pull request #7970 from birarda/api-recheck-on-fail
clear AddressManager previous lookup on 404
This commit is contained in:
commit
0a96b144e3
1 changed files with 4 additions and 0 deletions
|
@ -383,8 +383,12 @@ void AddressManager::handleAPIError(QNetworkReply& errorReply) {
|
||||||
qCDebug(networking) << "AddressManager API error -" << errorReply.error() << "-" << errorReply.errorString();
|
qCDebug(networking) << "AddressManager API error -" << errorReply.error() << "-" << errorReply.errorString();
|
||||||
|
|
||||||
if (errorReply.error() == QNetworkReply::ContentNotFoundError) {
|
if (errorReply.error() == QNetworkReply::ContentNotFoundError) {
|
||||||
|
// if this is a lookup that has no result, don't keep re-trying it
|
||||||
|
_previousLookup.clear();
|
||||||
|
|
||||||
emit lookupResultIsNotFound();
|
emit lookupResultIsNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
emit lookupResultsFinished();
|
emit lookupResultsFinished();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue