Diff

core/s2smanager.lua @ 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
parent 4833:b7a6e86ab87d
child 4993:5243b74a4cbb
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