Browse Source

Bugfix: BulkQuery->QueryTicker spammed errors if items list was empty (#13)

pull/15/head 2.14
Xan-Asc 2 years ago committed by GitHub
parent
commit
2fe75e4472
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      TradeSkillMaster/TradeSkillMaster.lua

1
TradeSkillMaster/TradeSkillMaster.lua

@ -716,6 +716,7 @@ end
-- Bulk load uncached IDs. Divides in to buckets of 50
function TSMAPI:BulkQuery(items)
if not items or #items == 0 then return end
self.QueryTicker = Timer.NewTicker(1, function()
Item:BulkContinueOnLoad(table.take(items, 50), function(id) end, function(id) return GetItemInfo(id) == nil end) -- 3rd parameter (validator) is optional
if #items == 0 then

Loading…
Cancel
Save