From e4da795611c0e87a93d97f397a74f02a7b2d9f7d 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(-) 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