Diff

plugins/mod_scansion_record.lua @ 9360:0444e321b757

mod_scansion_record: Hook correct shutdown event
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 14:27:24 +0200
parent 9359:dc55d7d2798b
child 9361:3620f7b3517b
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua	Sat Sep 22 14:19:46 2018 +0200
+++ b/plugins/mod_scansion_record.lua	Sat Sep 22 14:27:24 2018 +0200
@@ -68,6 +68,6 @@
 	filters.add_filter(session, "stanzas/out", record_stanza_out);
 end);
 
-module:hook_global("server-shutdown", function ()
+module:hook_global("server-stopping", function ()
 	fh:close();
 end);