From 7804582f2a401da0edf284072ae22e46e5196a13 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 26 May 2009 01:07:52 +0100 Subject: s2smanager: Only send reply when connection is still open --- core/s2smanager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/s2smanager.lua b/core/s2smanager.lua index b14f0e96..e9589340 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -306,7 +306,9 @@ end function streamclosed(session) (session.log or log)("debug", ""); - session.sends2s(""); + if session.sends2s then + session.sends2s(""); + end session.notopen = true; end -- cgit v1.2.3