# HG changeset patch # User Matthew Wild # Date 1293166170 0 # Node ID 5af5fdaaa9401539680d2ff998df4a4bb979f33a # Parent 472691075967d70da24ad3ea94c35608713aa853 s2smanager: Give all new outgoing s2s sessions a close method by default (destroy_session) diff -r 472691075967 -r 5af5fdaaa940 core/s2smanager.lua --- a/core/s2smanager.lua Fri Dec 24 04:48:38 2010 +0000 +++ b/core/s2smanager.lua Fri Dec 24 04:49:30 2010 +0000 @@ -177,6 +177,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]*$");