Diff

net/xmppserver_listener.lua @ 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
parent 2163:8d33f94dc3a1
child 2369:fe2819d281d5
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