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 | 70f86c0b666b0ee19c4270612fc0a2038fd7cd9f (patch) | |
tree | 1e56cd9a86164bd97e3ed9573d3e8b024675b27a /plugins/mod_scansion_record.lua | |
parent | 42adc5de68bf5eb622b02a5fadbb89910dd6902f (diff) | |
download | prosody-70f86c0b666b0ee19c4270612fc0a2038fd7cd9f.tar.gz prosody-70f86c0b666b0ee19c4270612fc0a2038fd7cd9f.zip |
mod_scansion_record: and close it on shutdown
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 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); |