aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/s2s
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-08 00:18:16 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-08 00:18:16 +0000
commitfa7ec9da2f20568b44741673b97480b916e8c779 (patch)
treeef01615ca08cc6b1d47e102db045435c22cee1a2 /plugins/s2s
parent11c425c594af5c003965950491ec430d900feae2 (diff)
parent3bb6cff7d45ce44efc0fc9fd6163f66026c0967c (diff)
downloadprosody-fa7ec9da2f20568b44741673b97480b916e8c779.tar.gz
prosody-fa7ec9da2f20568b44741673b97480b916e8c779.zip
Merge with Maranda
Diffstat (limited to 'plugins/s2s')
-rw-r--r--plugins/s2s/mod_s2s.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua
index 5d1d61c4..aa4d5d56 100644
--- a/plugins/s2s/mod_s2s.lua
+++ b/plugins/s2s/mod_s2s.lua
@@ -280,7 +280,6 @@ function stream_callbacks.streamdisconnected(session, err)
end
end
(session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed"));
- sessions[session.conn] = nil;
s2s_destroy_session(session, err);
end
@@ -457,7 +456,7 @@ function listener.ondisconnect(conn, err)
return; -- Connection lives, for now
end
end
- sessions[conn] = nil;
+ sessions[conn] = nil;
end
function listener.register_outgoing(conn, session)