From 5411f349e5ed8835d5c99dbfb19a0934a6e5e28f Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Mon, 13 Apr 2015 17:18:01 -0700 Subject: DD-379 : a 404 on a Get /listing means that said listing is not in SLM, then delete it from the local store --- indra/newview/llmarketplacefunctions.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp index bab655199f..5f5abd89e2 100755 --- a/indra/newview/llmarketplacefunctions.cpp +++ b/indra/newview/llmarketplacefunctions.cpp @@ -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; -- cgit v1.2.3