diff options
author | Kim Alvefur <zash@zash.se> | 2015-05-13 21:56:22 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-05-13 21:56:22 +0200 |
commit | eb5f70d68e06daf5d3ef6bcef9163fcabc5ce02a (patch) | |
tree | bad1c3452932414ddeeb5519e9752c747afd7ec9 /plugins | |
parent | 54e6e73b9c65d2e6a649e33d815959a9ceac8ddd (diff) | |
download | prosody-eb5f70d68e06daf5d3ef6bcef9163fcabc5ce02a.tar.gz prosody-eb5f70d68e06daf5d3ef6bcef9163fcabc5ce02a.zip |
mod_s2s: Mark stream as opened directly after opening stream, prevents session.close opening it again
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 1408fd5e..ee539a2a 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -349,6 +349,7 @@ function stream_callbacks.streamopened(session, attr) 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 @@ function stream_callbacks.streamopened(session, attr) 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 |