diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-17 19:00:36 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-17 19:00:36 +0000 |
commit | 897287609c626acf345eea358e08b63933a1f946 (patch) | |
tree | 2ad9a5ad82bb215e2526c772f52292ed7aff5035 /net | |
parent | 07bddf1ea6f39a7b53c3acb39119c801abc4925d (diff) | |
download | prosody-897287609c626acf345eea358e08b63933a1f946.tar.gz prosody-897287609c626acf345eea358e08b63933a1f946.zip |
xmppserver_listener: When a connection fails, pass the reason to destroy_session
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppserver_listener.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 53a9d354..403030b0 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -159,7 +159,7 @@ function xmppserver.ondisconnect(conn, err) 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 |