From d87188b309934c4afc1c478f63cf6d309d511651 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 16 Dec 2021 22:42:08 +0100 Subject: mod_smacks: Fix indentation Meld keeps messing up indentation when I merge and rebase... --- plugins/mod_smacks.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 246d1a53..7a0b608b 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -421,12 +421,12 @@ end); module:hook("pre-resource-unbind", function (event) local session = event.session; if not session.smacks then return end - if not session.resumption_token then - local queue = session.outgoing_stanza_queue; + if not session.resumption_token then + local queue = session.outgoing_stanza_queue; if queue:count_unacked() > 0 then session.log("debug", "Destroying session with %d unacked stanzas", queue:count_unacked()); - handle_unacked_stanzas(session); - end + handle_unacked_stanzas(session); + end return end -- cgit v1.2.3