Remove query pending mechanism from whoer

This commit is contained in:
2025-01-01 15:42:58 +01:00
parent 2ae12fade0
commit 3f1fae8906

View File

@@ -123,7 +123,6 @@ function shared.Whoer.Init()
{ NotSiegeOfOrgrimmarFilter, AllianceFilter }),
WHOQuery.new("Kekv Demonboo Dotmada Firobot Verminal Amaterasu Freexe Tomoki", {})
}
local queryPending = false
local ttl = #whoQueries * 2
---@type WHOQuery?
local lastQuery = nil
@@ -243,7 +242,6 @@ function shared.Whoer.Init()
local frame = CreateFrame("Frame")
frame:RegisterEvent("WHO_LIST_UPDATE")
frame:SetScript("OnEvent", function(self, event, ...)
queryPending = false
if not Heimdall_Data.config.who.enabled then return end
---@type WHOQuery?
local query = lastQuery
@@ -343,12 +341,6 @@ function shared.Whoer.Init()
do
local function DoQuery()
if not Heimdall_Data.config.who.enabled then return end
if queryPending then
print("Tried running a who query while one is already pending, previous query:")
shared.dumpTable(lastQuery)
return
end
queryPending = true
local query = whoQueries[whoQueryIdx]
whoQueryIdx = whoQueryIdx + 1