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