aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2012-06-13 11:47:04 +0500
committerWaqas Hussain <waqas20@gmail.com>2012-06-13 11:47:04 +0500
commit3d2e69a97ec9a0153cf862b7c3d619e7a736a996 (patch)
treea3d633bbbe093d799e61dd786fa4d156ce343d23 /core/s2smanager.lua
parentff8bd93299b7f9a46a5dc1ff9825ebde7637321e (diff)
downloadprosody-3d2e69a97ec9a0153cf862b7c3d619e7a736a996.tar.gz
prosody-3d2e69a97ec9a0153cf862b7c3d619e7a736a996.zip
s2smanager: Fix a traceback when we close a s2s connection ourselves (thanks for the testing Zash).
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 9e0a91d1..5fe3a375 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -133,7 +133,7 @@ local resting_session = { -- Resting, not dead
function retire_session(session, reason)
local log = session.log or log;
for k in pairs(session) do
- if k ~= "trace" and k ~= "log" and k ~= "id" then
+ if k ~= "trace" and k ~= "log" and k ~= "id" and k ~= "conn" then
session[k] = nil;
end
end