This commit is contained in:
Bunny67
2020-06-09 01:31:52 +03:00
parent 3b54dc21ef
commit 8668927b19
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ local function SoundPlay(self, options)
SoundPlayHelper(self); SoundPlayHelper(self);
local loop = options.do_loop or options.sound_type == "Loop"; local loop = options.do_loop or options.sound_type == "Loop";
if (loop and options.sound_repeat and options.sound_repeat < WeakAuras.maxTimerDuration) then if (loop and options.sound_repeat) then
self.soundRepeatTimer = WeakAuras.timer:ScheduleRepeatingTimer(SoundPlayHelper, options.sound_repeat, self); self.soundRepeatTimer = WeakAuras.timer:ScheduleRepeatingTimer(SoundPlayHelper, options.sound_repeat, self);
end end
WeakAuras.StopProfileSystem("sound"); WeakAuras.StopProfileSystem("sound");
+1 -7
View File
@@ -40,13 +40,7 @@ function WeakAuras:Mixin(object, ...)
end end
function WeakAurasTimers:ScheduleTimerFixed(func, delay, ...) function WeakAurasTimers:ScheduleTimerFixed(func, delay, ...)
if (delay < WeakAuras.maxTimerDuration) then return self:ScheduleTimer(func, delay, ...);
if delay + GetTime() > WeakAuras.maxUpTime then
WeakAuras.prettyPrint(WeakAuras.L["Can't schedule timer with %i, due to a World of Warcraft Bug with high computer uptime. (Uptime: %i). Please restart your Computer."]:format(delay, GetTime()))
return
end
return self:ScheduleTimer(func, delay, ...);
end
end end
local LDB = LibStub:GetLibrary("LibDataBroker-1.1") local LDB = LibStub:GetLibrary("LibDataBroker-1.1")