Mercurial > prosody-modules
diff mod_s2s_keepalive/mod_s2s_keepalive.lua @ 3766:f547eafb5a6d
mod_s2s_keepalive: Fix s2sout watchdog reset
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Dec 2019 18:38:22 +0100 |
parents | 11878130f266 |
children | ce1a32aa8bca |
line wrap: on
line diff
--- 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);