# HG changeset patch # User Kim Alvefur # Date 1537617177 -7200 # Node ID 9479523e209ae1910000f0cbcdfeb8c07ed340a9 # Parent 2946f2bd2bb5adb66e10af55705fc3d6413ef308 mod_scansion_record: and close it on shutdown diff -r 2946f2bd2bb5 -r 9479523e209a plugins/mod_scansion_record.lua --- a/plugins/mod_scansion_record.lua Sat Sep 22 13:52:55 2018 +0200 +++ b/plugins/mod_scansion_record.lua Sat Sep 22 13:52:57 2018 +0200 @@ -54,3 +54,6 @@ filters.add_filter(session, "stanzas/out", record_stanza_out); end); +module:hook_global("server-shutdown", function () + fh:close(); +end);