# HG changeset patch # User Kim Alvefur # Date 1589036863 -7200 # Node ID d8e83d94a99ad50ddef4850ffe0ab9b32e6cbc64 # Parent 4f7226d5ee301fa1a8743bc3672684af9a18b455 mod_csi_simple: Reset queue counter to zero when enabling For symmetry. diff -r 4f7226d5ee30 -r d8e83d94a99a plugins/mod_csi_simple.lua --- a/plugins/mod_csi_simple.lua Sat May 09 17:05:46 2020 +0200 +++ b/plugins/mod_csi_simple.lua Sat May 09 17:07:43 2020 +0200 @@ -124,6 +124,7 @@ function enable_optimizations(session) if session.conn and session.conn.pause_writes then session.conn:pause_writes(); + session.csi_counter = 0; filters.add_filter(session, "stanzas/out", manage_buffer); filters.add_filter(session, "bytes/in", flush_buffer); else