Comparison

mod_smacks/mod_smacks.lua @ 4463:8b8246031a5e

mod_smacks: Correct field name for session Fixes another traceback. I did point out that I was breaking everything.
author Kim Alvefur <zash@zash.se>
date Tue, 23 Feb 2021 03:22:33 +0100
parent 4458:5234d0c8883d
child 4536:8bdb9805bb73
comparison
equal deleted inserted replaced
4462:4356088ad675 4463:8b8246031a5e
646 request_ack_if_needed(event.origin, true, "csi-active", nil); 646 request_ack_if_needed(event.origin, true, "csi-active", nil);
647 end 647 end
648 end); 648 end);
649 649
650 module:hook("csi-flushing", function (event) 650 module:hook("csi-flushing", function (event)
651 if event.origin.smacks then 651 if event.session.smacks then
652 request_ack_if_needed(event.session, true, "csi-active", nil); 652 request_ack_if_needed(event.session, true, "csi-active", nil);
653 end 653 end
654 end); 654 end);
655 655
656 local function handle_read_timeout(event) 656 local function handle_read_timeout(event)