s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session)

Fri, 24 Dec 2010 04:49:30 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 24 Dec 2010 04:49:30 +0000
changeset 3953
174edf85a916
parent 3952
f5d2400ca127
child 3954
6e22b0cf3d72

s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session)

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- a/core/s2smanager.lua	Fri Dec 24 04:48:38 2010 +0000
+++ b/core/s2smanager.lua	Fri Dec 24 04:49:30 2010 +0000
@@ -178,6 +178,8 @@
 		
 		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]*$");

mercurial