Changeset

2089:964b3d649a36

mod_smacks: Increase delay for starting s2s smacks to a non-zero value
author Kim Alvefur <zash@zash.se>
date Wed, 16 Mar 2016 13:27:40 +0100
parents 2088:7a29d8e3275b
children 2090:1796a022dd29
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Wed Mar 16 13:26:21 2016 +0100
+++ b/mod_smacks/mod_smacks.lua	Wed Mar 16 13:27:40 2016 +0100
@@ -171,7 +171,7 @@
 
 module:hook_stanza("http://etherx.jabber.org/streams", "features",
 		function (session, stanza)
-			module:add_timer(0, function ()
+			module:add_timer(1e-6, function ()
 				if can_do_smacks(session) then
 					if stanza:get_child("sm", xmlns_sm3) then
 						session.sends2s(st.stanza("enable", sm3_attr));