# HG changeset patch # User James D. Callahan III # Date 1381778394 18000 # Node ID 4f2d5a082b6d12f9fec1c49038302f1474036dd0 # Parent 391eb564424c12f8543e4e8b2e4c8aa1be126ac5 Reorganized some of the timer functions' nil assignments. diff -r 391eb564424c -r 4f2d5a082b6d Main.lua --- a/Main.lua Sun Sep 15 19:02:55 2013 -0500 +++ b/Main.lua Mon Oct 14 14:19:54 2013 -0500 @@ -301,21 +301,21 @@ local function ClearKilledBossID() if killed_boss_id_timer_handle then WDP:CancelTimer(killed_boss_id_timer_handle) + killed_boss_id_timer_handle = nil end table.wipe(boss_loot_toasting) private.raid_finder_boss_id = nil private.world_boss_id = nil - killed_boss_id_timer_handle = nil end local function ClearLootToastContainerID() if loot_toast_container_timer_handle then WDP:CancelTimer(loot_toast_container_timer_handle) + killed_boss_id_timer_handle = nil end private.container_loot_toasting = false private.loot_toast_container_id = nil - loot_toast_container_timer_handle = nil end @@ -323,10 +323,12 @@ -- cancel existing timer if found if loot_toast_data_timer_handle then WDP:CancelTimer(loot_toast_data_timer_handle) + loot_toast_data_timer_handle = nil end - if loot_toast_data then table.wipe(loot_toast_data) end - loot_toast_data_timer_handle = nil + if loot_toast_data then + table.wipe(loot_toast_data) + end end