aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-24 04:49:30 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-24 04:49:30 +0000
commit4d132026d0cc13c429139a06f8096752c899711b (patch)
tree7eadcee76e3a9ee638a2c26e58db1c52f073bb84 /core/s2smanager.lua
parent40fc886767dd4f4371d1400c9534c8979d5b50d1 (diff)
downloadprosody-4d132026d0cc13c429139a06f8096752c899711b.tar.gz
prosody-4d132026d0cc13c429139a06f8096752c899711b.zip
s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session)
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 5dde476f..c7b950e2 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -177,6 +177,8 @@ function new_outgoing(from_host, to_host, connect)
hosts[from_host].s2sout[to_host] = host_session;
+ host_session.close = destroy_session; -- This gets replaced by xmppserver_listener later
+
local log;
do
local conn_name = "s2sout"..tostring(host_session):match("[a-f0-9]*$");