Software /
code /
prosody
Diff
plugins/mod_s2s/mod_s2s.lua @ 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 |
parent | 6683:873ad1023eb0 |
child | 6685:3f05b255937f |
child | 7100:301d58705667 |
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