Software /
code /
prosody
Comparison
plugins/mod_smacks.lua @ 12060:3099e03b10bd
mod_smacks: Fix indentation
Meld keeps messing up indentation when I merge and rebase...
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 16 Dec 2021 22:42:08 +0100 |
parent | 12059:70a55fbe447c |
child | 12061:31a7e0ac6928 |
comparison
equal
deleted
inserted
replaced
12059:70a55fbe447c | 12060:3099e03b10bd |
---|---|
419 end); | 419 end); |
420 | 420 |
421 module:hook("pre-resource-unbind", function (event) | 421 module:hook("pre-resource-unbind", function (event) |
422 local session = event.session; | 422 local session = event.session; |
423 if not session.smacks then return end | 423 if not session.smacks then return end |
424 if not session.resumption_token then | 424 if not session.resumption_token then |
425 local queue = session.outgoing_stanza_queue; | 425 local queue = session.outgoing_stanza_queue; |
426 if queue:count_unacked() > 0 then | 426 if queue:count_unacked() > 0 then |
427 session.log("debug", "Destroying session with %d unacked stanzas", queue:count_unacked()); | 427 session.log("debug", "Destroying session with %d unacked stanzas", queue:count_unacked()); |
428 handle_unacked_stanzas(session); | 428 handle_unacked_stanzas(session); |
429 end | 429 end |
430 return | 430 return |
431 end | 431 end |
432 | 432 |
433 session.hibernating = os_time(); | 433 session.hibernating = os_time(); |
434 session.hibernating_watchdog = watchdog.new(resume_timeout, function() | 434 session.hibernating_watchdog = watchdog.new(resume_timeout, function() |