From 8e4f70c4a2db2fd6e2a35ebefd63a9177b44fc31 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 11 Mar 2010 01:04:19 +0000 Subject: sessionmanager, s2smanager: Close session on --- core/s2smanager.lua | 7 ++----- core/sessionmanager.lua | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 0435bea9..15d981d4 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -434,11 +434,8 @@ function streamopened(session, attr) end function streamclosed(session) - (session.log or log)("debug", ""); - if session.sends2s then - session.sends2s(""); - end - session.notopen = true; + (session.log or log)("debug", "Received "); + session:close(); end function initiate_dialback(session) diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index a2c6ed95..b65e866f 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -211,8 +211,8 @@ function streamopened(session, attr) end function streamclosed(session) - session.send(""); - session.notopen = true; + session.log("debug", "Received "); + session:close(); end function send_to_available_resources(user, host, stanza) -- cgit v1.2.3