Comparison

core/s2smanager.lua @ 164:8dc1faa5b1df

other half of previous commit
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Oct 2008 18:14:40 +0100
parent 162:b1099bdd2724
child 167:c51246bc679d
comparison
equal deleted inserted replaced
163:3fec9b512d4e 164:8dc1faa5b1df
177 end 177 end
178 session.sendq = nil; 178 session.sendq = nil;
179 end 179 end
180 end 180 end
181 181
182 function destroy_session(session)
183 (session.log or log)("info", "Destroying session");
184 if session.direction == "outgoing" then
185 hosts[session.to_host] = nil;
186 end
187 session.conn = nil;
188 session.disconnect = nil;
189 for k in pairs(session) do
190 if k ~= "trace" then
191 session[k] = nil;
192 end
193 end
194 end
195
182 return _M; 196 return _M;