From 3f1fae890695e0f6389b23ed906b121cd94e8715 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 1 Jan 2025 15:42:58 +0100 Subject: [PATCH] Remove query pending mechanism from whoer --- Modules/Whoer.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Modules/Whoer.lua b/Modules/Whoer.lua index dbde0ce..0ff2f5b 100644 --- a/Modules/Whoer.lua +++ b/Modules/Whoer.lua @@ -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