Skip to content
Snippets Groups Projects
Commit 14ebeffe authored by Kelly Washington's avatar Kelly Washington
Browse files

MAINT-1078 Merchant Outbox import failures

Add 1s throttle on update checks for importer
reviewed with Simon
parent 90547ff4
No related branches found
No related tags found
No related merge requests found
......@@ -336,13 +336,19 @@ namespace LLMarketplaceImport
// Interface class
//
static const F32 MARKET_IMPORTER_UPDATE_FREQUENCY = 1.0f;
//static
void LLMarketplaceInventoryImporter::update()
{
if (instanceExists())
{
LLMarketplaceInventoryImporter::instance().updateImport();
static LLTimer update_timer;
if (update_timer.hasExpired())
{
LLMarketplaceInventoryImporter::instance().updateImport();
update_timer.setTimerExpirySec(MARKET_IMPORTER_UPDATE_FREQUENCY);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment