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 | c2de8c46fdbddd10dce72ec14f0990522f09b540 (patch) | |
tree | e1d1285c20c6ac5c9c5029c7fe54e98b56dbb826 /plugins/mod_scansion_record.lua | |
parent | cd7bd0335273995b9b0f01e2f2426df8ad707845 (diff) | |
download | prosody-c2de8c46fdbddd10dce72ec14f0990522f09b540.tar.gz prosody-c2de8c46fdbddd10dce72ec14f0990522f09b540.zip |
mod_scansion_record: Close files in the cleanup stage of shutdown (fixes use after close)
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-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); |