From da949c0ec47435eceb2c2a07c2224ba5e46cb154 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 14:27:24 +0200 Subject: mod_scansion_record: Hook correct shutdown event --- plugins/mod_scansion_record.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index c6c90bc3..e637d104 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -68,6 +68,6 @@ module:hook("resource-bind", function (event) filters.add_filter(session, "stanzas/out", record_stanza_out); end); -module:hook_global("server-shutdown", function () +module:hook_global("server-stopping", function () fh:close(); end); -- cgit v1.2.3