changeset 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 7fe10086e124
files mod_s2s_keepalive/mod_s2s_keepalive.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);