Bulk of server-baking impelmentation and a bit of cleanup.
This commit is contained in:
@@ -185,16 +185,9 @@ void LLInventoryModelBackgroundFetch::backgroundFetchCB(void *)
|
||||
LLInventoryModelBackgroundFetch::instance().backgroundFetch();
|
||||
}
|
||||
|
||||
//static
|
||||
void LLInventoryModelBackgroundFetch::backgroundFetch()
|
||||
{
|
||||
LLViewerRegion* region = gAgent.getRegion();
|
||||
if (!region)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (mBackgroundFetchActive && gAgent.getRegion())
|
||||
if (mBackgroundFetchActive && gAgent.getRegion() && gAgent.getRegion()->capabilitiesReceived())
|
||||
{
|
||||
// If we'll be using the capability, we'll be sending batches and the background thing isn't as important.
|
||||
std::string url = region->getCapability("FetchInventory2");
|
||||
|
||||
Reference in New Issue
Block a user