Changeset

1199:db2a55fe94f2

s2smanager: Only send reply </stream:stream> when connection is still open
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 May 2009 01:07:52 +0100
parents 1198:545c81364939
children 1200:57a72472e1bc
files core/s2smanager.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Tue May 26 01:07:21 2009 +0100
+++ b/core/s2smanager.lua	Tue May 26 01:07:52 2009 +0100
@@ -306,7 +306,9 @@
 
 function streamclosed(session)
 	(session.log or log)("debug", "</stream:stream>");
-	session.sends2s("</stream:stream>");
+	if session.sends2s then
+		session.sends2s("</stream:stream>");
+	end
 	session.notopen = true;
 end