mod_s2s: Fire event when s2s connection fails

vault/0.11
Matthew Wild 10 years ago
parent 5c1d761d86
commit 21b40df00e
  1. 1
      plugins/mod_s2s/mod_s2s.lua

@ -634,6 +634,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);

Loading…
Cancel
Save