parent
9a1688322a
commit
2cc76d0bd0
|
|
@ -1025,6 +1025,12 @@ void LLMarketplaceData::createSLMListingCoro(LLUUID folderId, LLUUID versionId,
|
|||
|
||||
log_SLM_infos("Post /listings", status.getType(), result);
|
||||
|
||||
if (!result.has("listings") || !result["listings"].isArray() || result["listings"].size() == 0)
|
||||
{
|
||||
LL_INFOS("SLM") << "Received an empty response for folder " << folderId << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
|
||||
// Extract the info from the results
|
||||
for (LLSD::array_iterator it = result["listings"].beginArray();
|
||||
it != result["listings"].endArray(); ++it)
|
||||
|
|
@ -1092,6 +1098,19 @@ void LLMarketplaceData::updateSLMListingCoro(LLUUID folderId, S32 listingId, LLU
|
|||
|
||||
log_SLM_infos("Put /listing", status.getType(), result);
|
||||
|
||||
if (!result.has("listings") || !result["listings"].isArray() || result["listings"].size() == 0)
|
||||
{
|
||||
LL_INFOS("SLM") << "Received an empty response for listing " << listingId << " folder " << folderId << LL_ENDL;
|
||||
// Try to get listing more directly after a delay
|
||||
const float FORCE_UPDATE_TIMEOUT = 5.0;
|
||||
llcoro::suspendUntilTimeout(FORCE_UPDATE_TIMEOUT);
|
||||
if (!LLApp::isExiting() && LLMarketplaceData::instanceExists())
|
||||
{
|
||||
getSLMListing(listingId);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Extract the info from the Json string
|
||||
for (LLSD::array_iterator it = result["listings"].beginArray();
|
||||
it != result["listings"].endArray(); ++it)
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class LLViewerJoystick : public LLSingleton<LLViewerJoystick>
|
|||
{
|
||||
LLSINGLETON(LLViewerJoystick);
|
||||
virtual ~LLViewerJoystick();
|
||||
LOG_CLASS(LLViewerJoystick);
|
||||
|
||||
public:
|
||||
void init(bool autoenable);
|
||||
|
|
|
|||
Loading…
Reference in New Issue