DD-379 : a 404 on a Get /listing means that said listing is not in SLM, then delete it from the local store

meow-7.2.2
Merov Linden 2015-04-13 17:18:01 -07:00
parent 50805277b3
commit 5411f349e5
1 changed files with 9 additions and 1 deletions

View File

@ -351,7 +351,15 @@ public:
if (!isGoodStatus())
{
log_SLM_warning("Get /listing", getStatus(), getReason(), "", body);
if (getStatus() == 404)
{
// That listing does not exist -> delete its record from the local SLM data store
LLMarketplaceData::instance().deleteListing(mExpectedFolderId, false);
}
else
{
log_SLM_warning("Get /listing", getStatus(), getReason(), "", body);
}
update_marketplace_category(mExpectedFolderId, false);
gInventory.notifyObservers();
return;