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
commit6e9784727f51c2aff07c8bfbdead6ab78cce7269 (patch)
treea3d633bbbe093d799e61dd786fa4d156ce343d23 /core/s2smanager.lua
parent94d42dfe8737ff3b5fe28e56f5b9d7cf0c0a0330 (diff)
downloadprosody-6e9784727f51c2aff07c8bfbdead6ab78cce7269.tar.gz
prosody-6e9784727f51c2aff07c8bfbdead6ab78cce7269.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