From 6aeed144eb15ca945b658e9248684fda0b8ee9f9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 13:52:57 +0200 Subject: mod_scansion_record: and close it on shutdown --- plugins/mod_scansion_record.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index 88c3e70a..5edcff2b 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -54,3 +54,6 @@ module:hook("resource-bind", function (event) filters.add_filter(session, "stanzas/out", record_stanza_out); end); +module:hook_global("server-shutdown", function () + fh:close(); +end); -- cgit v1.2.3