Comparison

mod_s2s_keepalive/mod_s2s_keepalive.lua @ 3769:ce1a32aa8bca

mod_s2s_keepalive: Include event payload in re-fired event (fix traceback)
author Kim Alvefur <zash@zash.se>
date Sun, 22 Dec 2019 15:46:20 +0100
parent 3766:f547eafb5a6d
child 3770:ae34ee0867f0
comparison
equal deleted inserted replaced
3768:bfc4d495bf2c 3769:ce1a32aa8bca
72 if origin.dummy then return end -- Probably a sendq bounce 72 if origin.dummy then return end -- Probably a sendq bounce
73 73
74 if origin.type == "s2sin" or origin.type == "s2sout" then 74 if origin.type == "s2sin" or origin.type == "s2sout" then
75 -- An error from the remote means connectivity is ok, 75 -- An error from the remote means connectivity is ok,
76 -- so treat it the same as a result 76 -- so treat it the same as a result
77 return module:fire_event("iq-result/host/keepalive"); 77 return module:fire_event("iq-result/host/keepalive", event);
78 end 78 end
79 end); 79 end);
80 80
81 module:add_timer(keepalive_interval, send_pings); 81 module:add_timer(keepalive_interval, send_pings);