Comparison

mod_smacks/mod_smacks.lua @ 1526:120817435151

mod_smacks: Fix sending ack requests on s2s
author Kim Alvefur <zash@zash.se>
date Mon, 20 Oct 2014 11:51:07 +0200
parent 1522:d4a4ed31567e
child 1527:06ecc5b3ca46
comparison
equal deleted inserted replaced
1525:37cef218ba20 1526:120817435151
87 end 87 end
88 if #queue > max_unacked_stanzas then 88 if #queue > max_unacked_stanzas then
89 module:add_timer(0, function () 89 module:add_timer(0, function ()
90 if not session.awaiting_ack then 90 if not session.awaiting_ack then
91 session.awaiting_ack = true; 91 session.awaiting_ack = true;
92 session.send(st.stanza("r", { xmlns = session.smacks })); 92 (session.sends2s or session.send)(st.stanza("r", { xmlns = session.smacks }));
93 end 93 end
94 end); 94 end);
95 end 95 end
96 end 96 end
97 return stanza; 97 return stanza;