diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-12 02:55:49 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-12 02:55:49 +0100 |
commit | 9bbe48073efa31d1bdf330911a9bc1aea7fa8d0f (patch) | |
tree | e23ea79dac94de96d144aa698ac74eace907bb25 | |
parent | 25de4549ed9b374fbdd9f885b3dc90dee955331d (diff) | |
download | prosody-9bbe48073efa31d1bdf330911a9bc1aea7fa8d0f.tar.gz prosody-9bbe48073efa31d1bdf330911a9bc1aea7fa8d0f.zip |
xmppserver_listener: Add session:close() method to outgoing s2s connections too
-rw-r--r-- | net/xmppserver_listener.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 0770a355..0216e8dc 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -149,7 +149,8 @@ function xmppserver.register_outgoing(conn, session) session.direction = "outgoing"; sessions[conn] = session; - session.reset_stream = session_reset_stream; + session.reset_stream = session_reset_stream; + session.close = session_close; session_reset_stream(session); -- Initialise, ready for use --local function handleerr(err) print("Traceback:", err, debug.traceback()); end |