diff options
author | Kim Alvefur <zash@zash.se> | 2020-05-09 17:07:43 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-05-09 17:07:43 +0200 |
commit | e1a3982654d6f10ebaa4b6efda5bf72d55c40413 (patch) | |
tree | 094c1a48e1b918732d05f38b63d9118baa7a4e69 | |
parent | 859c3650e5ad8a3fd101154a5f435ca2589ca4d6 (diff) | |
download | prosody-e1a3982654d6f10ebaa4b6efda5bf72d55c40413.tar.gz prosody-e1a3982654d6f10ebaa4b6efda5bf72d55c40413.zip |
mod_csi_simple: Reset queue counter to zero when enabling
For symmetry.
-rw-r--r-- | plugins/mod_csi_simple.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index fb3d80c5..a4ce258b 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -124,6 +124,7 @@ end 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 |