Software /
code /
prosody
Changeset
3489:1b76d18e8045
s2smanager: Don't fire s2sin-destroyed for sessions that were never fully established (thanks Thomas)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Sep 2010 18:00:21 +0100 |
parents | 3488:4f3fc5f9d944 |
children | 3490:957b40dc6d7c |
files | core/s2smanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/s2smanager.lua Sun Sep 05 12:13:49 2010 +0100 +++ b/core/s2smanager.lua Sun Sep 05 18:00:21 2010 +0100 @@ -582,7 +582,7 @@ if hosts[session.from_host] then hosts[session.from_host].events.fire_event("s2sout-destroyed", event_data); end - else + elseif session.type == "s2sin" then prosody.events.fire_event("s2sin-destroyed", event_data); if hosts[session.to_host] then hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data);