Changeset

11227:d36e44d00ef8

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Fri, 11 Dec 2020 15:37:35 +0100
parents 11225:8c17c08d100e (current diff) 11226:b3ae48362f78 (diff)
children 11228:e602f3d77ace
files plugins/mod_s2s.lua
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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);