Changeset

6684:53635a91c95c

mod_s2s: Mark stream as opened directly after opening stream, prevents session.close opening it again
author Kim Alvefur <zash@zash.se>
date Wed, 13 May 2015 21:56:22 +0200
parents 6683:873ad1023eb0
children 6685:3f05b255937f 6691:c6c996410064
files plugins/mod_s2s/mod_s2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Wed May 13 21:55:08 2015 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Wed May 13 21:56:22 2015 +0200
@@ -349,6 +349,7 @@
 		end
 
 		session:open_stream(session.to_host, session.from_host)
+		session.notopen = nil;
 		if session.version >= 1.0 then
 			local features = st.stanza("stream:features");
 			
@@ -361,7 +362,6 @@
 			log("debug", "Sending stream features: %s", tostring(features));
 			session.sends2s(features);
 		end
-		session.notopen = nil;
 	elseif session.direction == "outgoing" then
 		session.notopen = nil;
 		if not attr.id then