mod_smacks: Request ack on signal of ongoing CSI flush
authorKim Alvefur <zash@zash.se>
Tue, 16 Feb 2021 23:16:05 +0100
changeset 4450 3d593b612e07
parent 4449 e13eb0f851c8
child 4451 07aa101a1ae7
mod_smacks: Request ack on signal of ongoing CSI flush Should make it finally behave with mod_csi_simple from Prosody trunk
mod_smacks/mod_smacks.lua
--- 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