Software /
code /
prosody
Diff
plugins/mod_s2s.lua @ 11227:d36e44d00ef8
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 11 Dec 2020 15:37:35 +0100 |
parent | 11226:b3ae48362f78 |
parent | 11200:bf8f2da84007 |
child | 11238:ec84194356d4 |
line wrap: on
line diff
--- a/plugins/mod_s2s.lua Fri Dec 11 10:15:30 2020 +0000 +++ b/plugins/mod_s2s.lua Fri Dec 11 15:37:35 2020 +0100 @@ -177,7 +177,10 @@ 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);