Software /
code /
prosody
Comparison
core/s2smanager.lua @ 3951:b8d930c21a3a
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 | 3950:27947d66b814 |
child | 3952:f5d2400ca127 |
comparison
equal
deleted
inserted
replaced
3950:27947d66b814 | 3951:b8d930c21a3a |
---|---|
629 if hosts[session.to_host] then | 629 if hosts[session.to_host] then |
630 hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data); | 630 hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data); |
631 end | 631 end |
632 end | 632 end |
633 | 633 |
634 retire_session(session); -- Clean session until it is GC'd | 634 retire_session(session, reason); -- Clean session until it is GC'd |
635 return true; | |
635 end | 636 end |
636 | 637 |
637 return _M; | 638 return _M; |