aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-12 02:55:49 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-12 02:55:49 +0100
commit9bbe48073efa31d1bdf330911a9bc1aea7fa8d0f (patch)
treee23ea79dac94de96d144aa698ac74eace907bb25 /net
parent25de4549ed9b374fbdd9f885b3dc90dee955331d (diff)
downloadprosody-9bbe48073efa31d1bdf330911a9bc1aea7fa8d0f.tar.gz
prosody-9bbe48073efa31d1bdf330911a9bc1aea7fa8d0f.zip
xmppserver_listener: Add session:close() method to outgoing s2s connections too
Diffstat (limited to 'net')
-rw-r--r--net/xmppserver_listener.lua3
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