From a27b83955118295304b593d0f7874958b57d610a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 5 Apr 2009 20:06:39 +0100 Subject: sessionmanager, s2smanager, mod_component: Send reply when client closes stream --- core/s2smanager.lua | 5 +++++ core/sessionmanager.lua | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'core') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index f4f7ad36..4c758159 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -244,6 +244,11 @@ function streamopened(session, attr) session.notopen = nil; end +function streamclosed(session) + session.send(""); + session.notopen = true; +end + function initiate_dialback(session) -- generate dialback key session.dialback_key = generate_dialback(session.streamid, session.to_host, session.from_host); diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index b2b3c31b..1232922f 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -182,6 +182,11 @@ function streamopened(session, attr) session.notopen = nil; end +function streamclosed(session) + session.send(""); + session.notopen = true; +end + function send_to_available_resources(user, host, stanza) local count = 0; local to = stanza.attr.to; -- cgit v1.2.3