Comparison

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
comparison
equal deleted inserted replaced
4929:15c1b8aa123d 4930:42ac50c0382e
131 }; resting_session.__index = resting_session; 131 }; resting_session.__index = resting_session;
132 132
133 function retire_session(session, reason) 133 function retire_session(session, reason)
134 local log = session.log or log; 134 local log = session.log or log;
135 for k in pairs(session) do 135 for k in pairs(session) do
136 if k ~= "trace" and k ~= "log" and k ~= "id" then 136 if k ~= "trace" and k ~= "log" and k ~= "id" and k ~= "conn" then
137 session[k] = nil; 137 session[k] = nil;
138 end 138 end
139 end 139 end
140 140
141 session.destruction_reason = reason; 141 session.destruction_reason = reason;