aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-28 05:15:13 +0200
committerKim Alvefur <zash@zash.se>2016-08-28 05:15:13 +0200
commita247428e6a3a75c2007a27bc5da390683aa9cf2f (patch)
tree82455e93e2c274a0b0bbf97d893d869712b507b5 /plugins/mod_s2s
parent3c3f9aca729288b173af2707adcbfe6ed6450d1d (diff)
parent21b40df00e20d9d78fb8f4129dad2c8d52c7bde6 (diff)
downloadprosody-a247428e6a3a75c2007a27bc5da390683aa9cf2f.tar.gz
prosody-a247428e6a3a75c2007a27bc5da390683aa9cf2f.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index a6fdd254..3d5eddd7 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -665,6 +665,7 @@ function listener.ondisconnect(conn, err)
if s2sout.attempt_connection(session, err) then
return; -- Session lives for now
end
+ hosts[session.from_host].events.fire_event("s2s-connect-failure", { session = session, err = err });
end
(session.log or log)("debug", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "connection closed"));
s2s_destroy_session(session, err);