core/s2smanager.lua

changeset 2747
168104895051
parent 2746
3b9547fc0bed
child 2748
85a242cd1bc4
--- a/core/s2smanager.lua	Mon Mar 08 02:13:41 2010 +0000
+++ b/core/s2smanager.lua	Thu Mar 11 01:04:19 2010 +0000
@@ -434,11 +434,8 @@
 end
 
 function streamclosed(session)
-	(session.log or log)("debug", "</stream:stream>");
-	if session.sends2s then
-		session.sends2s("</stream:stream>");
-	end
-	session.notopen = true;
+	(session.log or log)("debug", "Received </stream:stream>");
+	session:close();
 end
 
 function initiate_dialback(session)

mercurial