changeset 4446:3d593b612e07

mod_smacks: Request ack on signal of ongoing CSI flush Should make it finally behave with mod_csi_simple from Prosody trunk
author Kim Alvefur <zash@zash.se>
date Tue, 16 Feb 2021 23:16:05 +0100
parents e13eb0f851c8
children 07aa101a1ae7
files mod_smacks/mod_smacks.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Tue Feb 16 22:49:44 2021 +0100
+++ b/mod_smacks/mod_smacks.lua	Tue Feb 16 23:16:05 2021 +0100
@@ -645,6 +645,10 @@
 	request_ack_if_needed(event.origin, true, "csi-active", nil);
 end);
 
+module:hook("csi-flushing", function (event)
+	request_ack_if_needed(event.session, true, "csi-active", nil);
+end);
+
 local function handle_read_timeout(event)
 	local session = event.session;
 	if session.smacks then