# HG changeset patch # User Kim Alvefur # Date 1607697455 -3600 # Node ID d36e44d00ef866fa840acc671c51ce059afd3e3a # Parent 8c17c08d100eaaa27f65a734f14619ec8a74b7d1# Parent b3ae48362f785f99fe1bcfa5e093f52a135fc5f8 Merge 0.11->trunk diff -r 8c17c08d100e -r d36e44d00ef8 plugins/mod_s2s.lua --- 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);