Changeset

2256:482bc84c15ea

xmppserver_listener: Update for new server API, fixes traceback when closing s2s connections
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Nov 2009 17:40:37 +0000
parents 2253:a3537266a916
children 2257:c1a85068ca36
files net/xmppserver_listener.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppserver_listener.lua	Sat Nov 28 17:39:05 2009 +0000
+++ b/net/xmppserver_listener.lua	Sat Nov 28 17:40:37 2009 +0000
@@ -100,10 +100,10 @@
 			end
 		end
 		session.sends2s("</stream:stream>");
-		if session.notopen or not session.conn.close() then
-			session.conn.close(true); -- Force FIXME: timer?
+		if session.notopen or not session.conn:close() then
+			session.conn:close(true); -- Force FIXME: timer?
 		end
-		session.conn.close();
+		session.conn:close();
 		xmppserver.ondisconnect(session.conn, "stream error");
 	end
 end