Changeset

990:235abebc896e

xmppserver_listener: Add session:close() method to outgoing s2s connections too
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Apr 2009 02:55:49 +0100
parents 989:ec239c044f31
children 991:cd0d75de8345
files net/xmppserver_listener.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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