aboutsummaryrefslogtreecommitdiffstats
path: root/core/hostmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-02-24 19:40:18 +0100
committerKim Alvefur <zash@zash.se>2018-02-24 19:40:18 +0100
commitdd59d232700502fc2e432cd863ca86e7265ee0e8 (patch)
tree79ea2d75fe539f286301c46260b2d4139534ad6b /core/hostmanager.lua
parent6946a55f8f301da7521536a4ff79edcf690f4aaa (diff)
downloadprosody-dd59d232700502fc2e432cd863ca86e7265ee0e8.tar.gz
prosody-dd59d232700502fc2e432cd863ca86e7265ee0e8.zip
hostmanager: Add a logging close method in case something tries to close the origin of local-originated stanzas (see #1084)
Diffstat (limited to 'core/hostmanager.lua')
-rw-r--r--core/hostmanager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 643724c2..106a8ef2 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -92,6 +92,9 @@ function activate(host, host_config)
send = host_send;
modules = {};
};
+ function host_session:close(reason)
+ log("debug", "Attempt to close host session %s with reason: %s", self.host, reason);
+ end
setmetatable(host_session, host_mt);
if not host_config.component_module then -- host
host_session.type = "local";