aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-18 19:44:54 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-18 19:44:54 +0000
commit99b617b8b6839a496ee26033b1b613a9f11e8f62 (patch)
treebd18151471ccc48cdd2ff90e986a75c864990484 /core/s2smanager.lua
parent64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c (diff)
downloadprosody-99b617b8b6839a496ee26033b1b613a9f11e8f62.tar.gz
prosody-99b617b8b6839a496ee26033b1b613a9f11e8f62.zip
session:disconnect() -> session:close() for consistency with other Lua APIs
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index afc4f145..1fc2715d 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -139,7 +139,7 @@ function streamopened(session, attr)
send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host }):top_tag());
if session.to_host and not hosts[session.to_host] then
-- Attempting to connect to a host we don't serve
- session:disconnect("host-unknown");
+ session:close("host-unknown");
return;
end
elseif session.direction == "outgoing" then
@@ -230,8 +230,6 @@ function destroy_session(session)
hosts[session.from_host].s2sout[session.to_host] = nil;
end
- session.conn = nil;
- session.disconnect = nil;
for k in pairs(session) do
if k ~= "trace" then
session[k] = nil;