diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-22 13:52:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-22 13:52:57 +0200 |
commit | 6aeed144eb15ca945b658e9248684fda0b8ee9f9 (patch) | |
tree | 1e56cd9a86164bd97e3ed9573d3e8b024675b27a /plugins | |
parent | 6801bc42b14e094dc9238fd208ce8ee9d697eb07 (diff) | |
download | prosody-6aeed144eb15ca945b658e9248684fda0b8ee9f9.tar.gz prosody-6aeed144eb15ca945b658e9248684fda0b8ee9f9.zip |
mod_scansion_record: and close it on shutdown
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 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); |