From f44fcd324948662a1bab4b9a2b562ff79cd67c60 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 18 May 2012 04:22:51 +0100 Subject: util.watchdog: Pass watchdog object to callback so that it doesn't always have to be a closure --- util/watchdog.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/watchdog.lua') diff --git a/util/watchdog.lua b/util/watchdog.lua index 96031415..bcb2e274 100644 --- a/util/watchdog.lua +++ b/util/watchdog.lua @@ -16,7 +16,7 @@ function new(timeout, callback) end local time_left = (last_reset + timeout) - current_time; if time_left < 0 then - return watchdog.callback(); + return watchdog:callback(); end return time_left + 1; end); -- cgit v1.2.3