diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-22 15:14:25 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-22 15:14:25 +0200 |
commit | c2107370249066e8a5f977c83605febd7f7d3a2b (patch) | |
tree | e1d1285c20c6ac5c9c5029c7fe54e98b56dbb826 /plugins | |
parent | 96e6f26aa77d3787631eff67efd4675ec2a2ab67 (diff) | |
download | prosody-c2107370249066e8a5f977c83605febd7f7d3a2b.tar.gz prosody-c2107370249066e8a5f977c83605febd7f7d3a2b.zip |
mod_scansion_record: Close files in the cleanup stage of shutdown (fixes use after close)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_scansion_record.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index ee967271..3e2644e0 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -88,6 +88,9 @@ record[[ module:hook_global("server-stopping", function () record("# recording ended on "..dt.datetime().."\n"); module:log("info", "Scansion recording available in %s", record_file); +end); + +prosody.events.add_handler("server-cleanup", function () scan:close(); head:close() end); |