- Fixed problem with memory clean up time out after combat.

- Fixed a window group problem where sometimes during logon it breaks the addon.
This commit is contained in:
tercio
2014-10-29 15:42:07 -02:00
parent b16c61bc1f
commit 4dd789e3f9
4 changed files with 28 additions and 11 deletions
+2 -2
View File
@@ -604,7 +604,7 @@
end
function _detalhes:CheckMemoryAfterCombat()
if (_detalhes.next_memory_check < time()) then
if (_detalhes.next_memory_check < time() and not InCombatLockdown() and not UnitAffectingCombat ("player")) then
if (_detalhes.debug) then
_detalhes:Msg ("(debug) checking memory after combat.")
end
@@ -617,7 +617,7 @@
end
end
function _detalhes:CheckMemoryPeriodically()
if (_detalhes.next_memory_check <= time() and not _InCombatLockdown() and not _detalhes.in_combat) then
if (_detalhes.next_memory_check <= time() and not _InCombatLockdown() and not _detalhes.in_combat and not UnitAffectingCombat ("player")) then
_detalhes.next_memory_check = time() + _detalhes.intervalo_memoria - 3
UpdateAddOnMemoryUsage()
local memory = GetAddOnMemoryUsage ("Details")