Skip to content

Commit

Permalink
Fix uncached items not setting foundNewItems
Browse files Browse the repository at this point in the history
In d0ae656 the logic around itemRequestTimeout was incorrectly
changed, which exposed a bug in the logic of processItemRequest

Fixes WeakAuras bug #4836
  • Loading branch information
InfusOnWoW committed Jan 26, 2024
1 parent d0ae656 commit 0dd0b92
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions LibRangeCheck-3.0/LibRangeCheck-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ License: MIT
-- @class file
-- @name LibRangeCheck-3.0
local MAJOR_VERSION = "LibRangeCheck-3.0"
local MINOR_VERSION = 10
local MINOR_VERSION = 11

---@class lib
local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
Expand Down Expand Up @@ -1266,12 +1266,9 @@ function lib:processItemRequests(itemRequests)
return true -- still waiting for server response
elseif GetItemInfo(item) then
-- print("### processItemRequests: found: " .. tostring(item))
if itemRequestTimeoutAt[item] then
-- print("### processItemRequests: new: " .. tostring(item))
foundNewItems = true
itemRequestTimeoutAt[item] = nil
pendingItemRequest[item] = nil
end
foundNewItems = true
itemRequestTimeoutAt[item] = nil
pendingItemRequest[item] = nil
if not cacheAllItems then
itemRequests[range] = nil
break
Expand Down

0 comments on commit 0dd0b92

Please sign in to comment.