clear AddressManager previous lookup on 404

This commit is contained in:
Stephen Birarda 2016-05-25 11:40:17 -07:00
parent b8b39b962d
commit 3137cd64e1

View file

@ -383,8 +383,12 @@ void AddressManager::handleAPIError(QNetworkReply& errorReply) {
qCDebug(networking) << "AddressManager API error -" << errorReply.error() << "-" << errorReply.errorString();
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 lookupResultsFinished();
}