Comparison

core/s2smanager.lua @ 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
parent 3488:4f3fc5f9d944
child 3540:bc139431830b
comparison
equal deleted inserted replaced
3488:4f3fc5f9d944 3489:1b76d18e8045
580 if session.type == "s2sout" then 580 if session.type == "s2sout" then
581 prosody.events.fire_event("s2sout-destroyed", event_data); 581 prosody.events.fire_event("s2sout-destroyed", event_data);
582 if hosts[session.from_host] then 582 if hosts[session.from_host] then
583 hosts[session.from_host].events.fire_event("s2sout-destroyed", event_data); 583 hosts[session.from_host].events.fire_event("s2sout-destroyed", event_data);
584 end 584 end
585 else 585 elseif session.type == "s2sin" then
586 prosody.events.fire_event("s2sin-destroyed", event_data); 586 prosody.events.fire_event("s2sin-destroyed", event_data);
587 if hosts[session.to_host] then 587 if hosts[session.to_host] then
588 hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data); 588 hosts[session.to_host].events.fire_event("s2sin-destroyed", event_data);
589 end 589 end
590 end 590 end