Diff

plugins/mod_scansion_record.lua @ 9347:9479523e209a

mod_scansion_record: and close it on shutdown
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 13:52:57 +0200
parent 9346:2946f2bd2bb5
child 9348:e1de3245c696
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua	Sat Sep 22 13:52:55 2018 +0200
+++ b/plugins/mod_scansion_record.lua	Sat Sep 22 13:52:57 2018 +0200
@@ -54,3 +54,6 @@
 	filters.add_filter(session, "stanzas/out", record_stanza_out);
 end);
 
+module:hook_global("server-shutdown", function ()
+	fh:close();
+end);