# HG changeset patch # User Kim Alvefur # Date 1576949902 -3600 # Node ID f547eafb5a6d76b3c1273d37afb2ebd4b724acbb # Parent 11878130f266d0bbf918746636c0e85fcd79e40a mod_s2s_keepalive: Fix s2sout watchdog reset diff -r 11878130f266 -r f547eafb5a6d mod_s2s_keepalive/mod_s2s_keepalive.lua --- a/mod_s2s_keepalive/mod_s2s_keepalive.lua Sat Dec 21 17:52:32 2019 +0100 +++ b/mod_s2s_keepalive/mod_s2s_keepalive.lua Sat Dec 21 18:38:22 2019 +0100 @@ -62,8 +62,8 @@ if origin.watchdog_keepalive then origin.watchdog_keepalive:reset(); end - if s2sout[origin.from_host] then - s2sout[origin.from_host]:reset(); + if s2sout[origin.from_host] and s2sout[origin.from_host].watchdog_keepalive then + s2sout[origin.from_host].watchdog_keepalive:reset(); end end);