plugins/mod_s2s/mod_s2s.lua
changeset 6687 53635a91c95c
parent 6686 873ad1023eb0
child 6688 3f05b255937f
child 7103 301d58705667
--- 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