Changeset

4930:42ac50c0382e

s2smanager: Fix a traceback when we close a s2s connection ourselves (thanks for the testing Zash).
author Waqas Hussain <waqas20@gmail.com>
date Wed, 13 Jun 2012 11:47:04 +0500
parents 4929:15c1b8aa123d
children 4931:7a4f00168260
files core/s2smanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/s2smanager.lua	Tue Jun 12 17:31:55 2012 +0100
+++ b/core/s2smanager.lua	Wed Jun 13 11:47:04 2012 +0500
@@ -133,7 +133,7 @@
 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