aboutsummaryrefslogtreecommitdiffstats
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
commit1246a8c3664b4faa61f3c68971f08a6b0d649b34 (patch)
tree052d5954151dc3013efa1c710fdb20d129d90081
parentfd62766d148ecc8880083083eb874989c97710e4 (diff)
downloadprosody-1246a8c3664b4faa61f3c68971f08a6b0d649b34.tar.gz
prosody-1246a8c3664b4faa61f3c68971f08a6b0d649b34.zip
s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session)
-rw-r--r--core/s2smanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index a516797e..6f1c25d9 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -178,6 +178,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]*$");