diff options
author | Kelly Washington <kelly@lindenlab.com> | 2012-06-27 11:32:54 -0700 |
---|---|---|
committer | Kelly Washington <kelly@lindenlab.com> | 2012-06-27 11:32:54 -0700 |
commit | 14ebeffe8776562c0ac9711a44b7ebe3dec49c47 (patch) | |
tree | 37138c9924336d9d509ba1775a3592da8d51813d /indra/newview/llmarketplacefunctions.cpp | |
parent | 90547ff411db177bf6424ca553449a81a808fc0f (diff) |
MAINT-1078 Merchant Outbox import failures
Add 1s throttle on update checks for importer
reviewed with Simon
Diffstat (limited to 'indra/newview/llmarketplacefunctions.cpp')
-rw-r--r-- | indra/newview/llmarketplacefunctions.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp index 93dd82957f..51df868faa 100644 --- a/indra/newview/llmarketplacefunctions.cpp +++ b/indra/newview/llmarketplacefunctions.cpp @@ -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); + } } } |