From 6e9784727f51c2aff07c8bfbdead6ab78cce7269 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 13 Jun 2012 11:47:04 +0500 Subject: s2smanager: Fix a traceback when we close a s2s connection ourselves (thanks for the testing Zash). --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/s2smanager.lua') 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 -- cgit v1.2.3