Skip to content

Commit

Permalink
search slowness bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirsig committed Dec 13, 2020
1 parent 7c1aa34 commit 676c054
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aux-addon.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 11306
## Author: shirsig
## Title: aux
## Version: 1.1.5
## Version: 1.1.6
## Notes: Auction House replacement
## SavedVariables: aux

Expand Down
6 changes: 5 additions & 1 deletion core/cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ end

function on_get_item_info_received(item_id, success)
if success then
aux.coro_thread(function() process_item(item_id) end)
aux.coro_thread(function()
if not aux.account_data.items[item_id] and not aux.account_data.unused_item_ids[item_id] then
process_item(item_id)
end
end)
else -- TODO if success == nil then
aux.account_data.unused_item_ids[item_id] = true
end
Expand Down

0 comments on commit 676c054

Please sign in to comment.