core/s2smanager.lua

changeset 3489
1b76d18e8045
parent 3488
4f3fc5f9d944
child 3540
bc139431830b
--- 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);

mercurial