Comparison

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
comparison
equal deleted inserted replaced
9346:2946f2bd2bb5 9347:9479523e209a
52 52
53 filters.add_filter(session, "stanzas/in", record_stanza_in); 53 filters.add_filter(session, "stanzas/in", record_stanza_in);
54 filters.add_filter(session, "stanzas/out", record_stanza_out); 54 filters.add_filter(session, "stanzas/out", record_stanza_out);
55 end); 55 end);
56 56
57 module:hook_global("server-shutdown", function ()
58 fh:close();
59 end);