# HG changeset patch # User Matthew Wild # Date 1239501349 -3600 # Node ID 235abebc896e516ee9cd8289c26f9d5869f4d03e # Parent ec239c044f31b8b5a889909d8edaf8a8c938aa93 xmppserver_listener: Add session:close() method to outgoing s2s connections too diff -r ec239c044f31 -r 235abebc896e net/xmppserver_listener.lua --- a/net/xmppserver_listener.lua Sun Apr 12 02:54:45 2009 +0100 +++ b/net/xmppserver_listener.lua Sun Apr 12 02:55:49 2009 +0100 @@ -149,7 +149,8 @@ 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