# HG changeset patch # User Kim Alvefur # Date 1431546982 -7200 # Node ID 53635a91c95cc9ee77887f85ffe88111872a26d0 # Parent 873ad1023eb04adbceef303738f56a1cb21602ed mod_s2s: Mark stream as opened directly after opening stream, prevents session.close opening it again diff -r 873ad1023eb0 -r 53635a91c95c plugins/mod_s2s/mod_s2s.lua --- 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