X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fwatchdog.lua;h=bcb2e274dd609935b9613b4c63dbc7db352ea980;hb=84c934632367eac822fb6af2663032b67fd0a596;hp=9603141568ea28119d7c4a5946c8af89188e626d;hpb=a2916c7a36be2c45af0e9f9b200293c4744dc8dc;p=prosody.git 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);