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);
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);
end
WeakAuras.StopProfileSystem("sound");
-6
View File
@@ -40,14 +40,8 @@ function WeakAuras:Mixin(object, ...)
end
function WeakAurasTimers:ScheduleTimerFixed(func, delay, ...)
if (delay < WeakAuras.maxTimerDuration) then
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
local LDB = LibStub:GetLibrary("LibDataBroker-1.1")
local LDBIcon = LibStub("LibDBIcon-1.0")