aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 13:52:57 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 13:52:57 +0200
commit70f86c0b666b0ee19c4270612fc0a2038fd7cd9f (patch)
tree1e56cd9a86164bd97e3ed9573d3e8b024675b27a
parent42adc5de68bf5eb622b02a5fadbb89910dd6902f (diff)
downloadprosody-70f86c0b666b0ee19c4270612fc0a2038fd7cd9f.tar.gz
prosody-70f86c0b666b0ee19c4270612fc0a2038fd7cd9f.zip
mod_scansion_record: and close it on shutdown
-rw-r--r--plugins/mod_scansion_record.lua3
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);