Comparison

core/s2smanager.lua @ 4019:80aa47c009f0

s2smanager: destroy_session(): Pass reason to retire_session() and return true on successful destruction
author Matthew Wild <mwild1@gmail.com>
date Fri, 24 Dec 2010 04:48:18 +0000
parent 4018:5061c8d41d89
child 4020:472691075967
comparison
equal deleted inserted replaced
4018:5061c8d41d89 4019:80aa47c009f0
592 if hosts[session.to_host] then 592 if hosts[session.to_host] then
593 hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data); 593 hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data);
594 end 594 end
595 end 595 end
596 596
597 retire_session(session); -- Clean session until it is GC'd 597 retire_session(session, reason); -- Clean session until it is GC'd
598 return true;
598 end 599 end
599 600
600 return _M; 601 return _M;