summaryrefslogtreecommitdiff
path: root/server/src/timer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/timer.lua')
-rw-r--r--server/src/timer.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/timer.lua b/server/src/timer.lua
index 0ae5094f..f477dccf 100644
--- a/server/src/timer.lua
+++ b/server/src/timer.lua
@@ -193,6 +193,10 @@ function mt:remaining()
return getRemaining(self) / 1000.0
end
+function mt:onTimer()
+ self:_onTimer()
+end
+
function ac.wait(timeout, onTimer)
local t = setmetatable({
['_timeout'] = mathMax(mathFloor(timeout * 1000.0), 1),