diff options
| author | Merov Linden <merov@lindenlab.com> | 2015-04-13 17:18:01 -0700 | 
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2015-04-13 17:18:01 -0700 | 
| commit | 5411f349e5ed8835d5c99dbfb19a0934a6e5e28f (patch) | |
| tree | cb4162d94a241715fd37faf928efc84f18ba7baf /indra | |
| parent | 50805277b30fcbb9fcec8ed078f472d1e3ee3802 (diff) | |
DD-379 : a 404 on a Get /listing means that said listing is not in SLM, then delete it from the local store
Diffstat (limited to 'indra')
| -rwxr-xr-x | indra/newview/llmarketplacefunctions.cpp | 10 | 
1 files changed, 9 insertions, 1 deletions
| 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; | 
