aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-09 17:07:43 +0200
committerKim Alvefur <zash@zash.se>2020-05-09 17:07:43 +0200
commite1a3982654d6f10ebaa4b6efda5bf72d55c40413 (patch)
tree094c1a48e1b918732d05f38b63d9118baa7a4e69 /plugins
parent859c3650e5ad8a3fd101154a5f435ca2589ca4d6 (diff)
downloadprosody-e1a3982654d6f10ebaa4b6efda5bf72d55c40413.tar.gz
prosody-e1a3982654d6f10ebaa4b6efda5bf72d55c40413.zip
mod_csi_simple: Reset queue counter to zero when enabling
For symmetry.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_csi_simple.lua1
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