aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_scansion_record.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-rw-r--r--plugins/mod_scansion_record.lua3
1 files changed, 3 insertions, 0 deletions
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);