Changeset

4581:d2eb5962d235

mod_s2s: return true when we sent the stanza, or initiated a new s2sout
author Kim Alvefur <zash@zash.se>
date Sat, 03 Mar 2012 00:14:48 +0100
parents 4580:351936a8de4a
children 4582:542afb9c2ab1
files plugins/s2s/mod_s2s.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/s2s/mod_s2s.lua	Sat Mar 03 00:03:06 2012 +0100
+++ b/plugins/s2s/mod_s2s.lua	Sat Mar 03 00:14:48 2012 +0100
@@ -90,6 +90,7 @@
 			end
 			host.sends2s(stanza);
 			host.log("debug", "stanza sent over "..host.type);
+			return true;
 		end
 	end
 end, 200);
@@ -112,6 +113,7 @@
 		end
 		return false;
 	end
+	return true;
 end, 100);
 
 --- Helper to check that a session peer's certificate is valid