diff --git a/Altoholic-Addon/DataStore_Containers/DataStore_Containers.lua b/Altoholic-Addon/DataStore_Containers/DataStore_Containers.lua index 78c6f9e..1472ca5 100644 --- a/Altoholic-Addon/DataStore_Containers/DataStore_Containers.lua +++ b/Altoholic-Addon/DataStore_Containers/DataStore_Containers.lua @@ -398,7 +398,10 @@ local function ScanKeyRing() end -- *** Event Handlers *** -local function OnBagUpdate(event, bag) +-- local function OnBagUpdate(event, bag) +local function OnBagUpdate(arg) + local bag = arg + FCSP_timer_table_OnBagUpdate[bag] = nil -- manual reset (safety redundancy) -- if bag < 0 then @@ -428,7 +431,8 @@ local function FCSP_OnBagUpdate(event, bag) end if FCSP_timer_table_OnBagUpdate[bag] then return end - FCSP_timer_table_OnBagUpdate[bag] = addon:ScheduleTimer(OnBagUpdate, 1, event, bag) + -- FCSP_timer_table_OnBagUpdate[bag] = addon:ScheduleTimer(OnBagUpdate, 1, event, bag) + FCSP_timer_table_OnBagUpdate[bag] = addon:ScheduleTimer(OnBagUpdate, 1, bag) end diff --git a/Altoholic-Addon/DataStore_Mails/DataStore_Mails.lua b/Altoholic-Addon/DataStore_Mails/DataStore_Mails.lua index 3d81a26..4507d10 100644 --- a/Altoholic-Addon/DataStore_Mails/DataStore_Mails.lua +++ b/Altoholic-Addon/DataStore_Mails/DataStore_Mails.lua @@ -219,7 +219,10 @@ end -- *** Event Handlers *** -local function OnBagUpdate(event, bag) +-- local function OnBagUpdate(event, bag) +local function OnBagUpdate(arg) + local bag = arg + FCSP_timer_OnBagUpdate = nil -- manual reset (safety redundancy) if addon.isOpen then -- if a bag is updated while the mailbox is opened, this means an attachment has been taken. @@ -238,7 +241,8 @@ local function FCSP_OnBagUpdate(event, bag) if addon.isOpen then -- if a bag is updated while the mailbox is opened, this means an attachment has been taken. if FCSP_timer_OnBagUpdate then return end - FCSP_timer_OnBagUpdate = addon:ScheduleTimer(OnBagUpdate, 1, event, bag) + -- FCSP_timer_OnBagUpdate = addon:ScheduleTimer(OnBagUpdate, 1, event, bag) + FCSP_timer_OnBagUpdate = addon:ScheduleTimer(OnBagUpdate, 1, bag) end end