Software /
code /
prosody
Changeset
10827:d8e83d94a99a
mod_csi_simple: Reset queue counter to zero when enabling
For symmetry.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 May 2020 17:07:43 +0200 |
parents | 10826:4f7226d5ee30 |
children | 10828:c12ed21f877e |
files | plugins/mod_csi_simple.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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