Software /
code /
prosody
Changeset
2369:fe2819d281d5
xmppserver_listener: When a connection fails, pass the reason to destroy_session
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 17 Dec 2009 19:00:36 +0000 |
parents | 2368:4726cd9a6318 |
children | 2370:d783c8de379d |
files | net/xmppserver_listener.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/xmppserver_listener.lua Thu Dec 17 18:59:29 2009 +0000 +++ b/net/xmppserver_listener.lua Thu Dec 17 19:00:36 2009 +0000 @@ -159,7 +159,7 @@ end end (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err)); - s2s_destroy_session(session); + s2s_destroy_session(session, err); sessions[conn] = nil; session = nil; end