summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-08-25 22:03:49 -0700
committerMerov Linden <merov@lindenlab.com>2014-08-25 22:03:49 -0700
commit4d752d31aa7c86631bd12e9fdd5d37c541d78929 (patch)
treeb838e9b692fb284199f209985d01d6e3c23c30ef /indra/newview
parentc8f6b28c2266caf28787775040be7588f7591e9f (diff)
DD-105 : Refresh listing even when SLM returns with errors
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llmarketplacefunctions.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp
index 9457884cf4..090b78a6bb 100755
--- a/indra/newview/llmarketplacefunctions.cpp
+++ b/indra/newview/llmarketplacefunctions.cpp
@@ -180,6 +180,8 @@ public:
if (!isGoodStatus())
{
log_SLM_warning("Get /listings", getStatus(), getReason(), "", "");
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
LLBufferStream istr(channels, buffer.get());
@@ -192,6 +194,8 @@ public:
if (!reader.parse(body,root))
{
log_SLM_warning("Get /listings", getStatus(), "Json parsing failed", reader.getFormatedErrorMessages(), body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -247,6 +251,8 @@ public:
if (!isGoodStatus())
{
log_SLM_warning("Post /listings", getStatus(), getReason(), "", "");
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -260,6 +266,8 @@ public:
if (!reader.parse(body,root))
{
log_SLM_warning("Post /listings", getStatus(), "Json parsing failed", reader.getFormatedErrorMessages(), body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -312,6 +320,8 @@ public:
if (!isGoodStatus())
{
log_SLM_warning("Get /listing", getStatus(), getReason(), "", body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -320,6 +330,8 @@ public:
if (!reader.parse(body,root))
{
log_SLM_warning("Get /listing", getStatus(), "Json parsing failed", reader.getFormatedErrorMessages(), body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -379,6 +391,8 @@ public:
if (!isGoodStatus())
{
log_SLM_warning("Put /listing", getStatus(), getReason(), "", body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -387,6 +401,8 @@ public:
if (!reader.parse(body,root))
{
log_SLM_warning("Put /listing", getStatus(), "Json parsing failed", reader.getFormatedErrorMessages(), body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -450,6 +466,8 @@ public:
if (!isGoodStatus())
{
log_SLM_warning("Put /associate_inventory", getStatus(), getReason(), "", "");
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -463,6 +481,8 @@ public:
if (!reader.parse(body,root))
{
log_SLM_warning("Put /associate_inventory", getStatus(), "Json parsing failed", reader.getFormatedErrorMessages(), body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -525,6 +545,8 @@ public:
if (!isGoodStatus())
{
log_SLM_warning("Delete /listing", getStatus(), getReason(), "", body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}
@@ -533,6 +555,8 @@ public:
if (!reader.parse(body,root))
{
log_SLM_warning("Delete /listing", getStatus(), "Json parsing failed", reader.getFormatedErrorMessages(), body);
+ update_marketplace_category(mExpectedFolderId, false);
+ gInventory.notifyObservers();
return;
}