diff options
author | Kim Alvefur <zash@zash.se> | 2020-12-11 15:37:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-12-11 15:37:35 +0100 |
commit | b9d276c74793e78fe359f09648a2398906c59541 (patch) | |
tree | d60a14008227bcc7ce5fae4b8736592b4013b5a7 /plugins/mod_s2s.lua | |
parent | 8f2e87f1426edec771e3d0c20c5339fd82710f40 (diff) | |
parent | a98a33cfe19a5998b1ef760554be89ddd1b182ff (diff) | |
download | prosody-b9d276c74793e78fe359f09648a2398906c59541.tar.gz prosody-b9d276c74793e78fe359f09648a2398906c59541.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_s2s.lua')
-rw-r--r-- | plugins/mod_s2s.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_s2s.lua b/plugins/mod_s2s.lua index 0674f981..9fed6e0c 100644 --- a/plugins/mod_s2s.lua +++ b/plugins/mod_s2s.lua @@ -177,7 +177,10 @@ function route_to_new_session(event) end local function keepalive(event) - return event.session.sends2s(' '); + local session = event.session; + if not session.notopen then + return event.session.send(' '); + end end module:hook("s2s-read-timeout", keepalive, -1); |