aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-05-09 17:05:46 +0200
committerKim Alvefur <zash@zash.se>2020-05-09 17:05:46 +0200
commit859c3650e5ad8a3fd101154a5f435ca2589ca4d6 (patch)
tree2f45c90059a7a51c5ee27aed3b2bc698d857e6da
parentcabd89913a6d1101defb663f964116c6ec9ba37b (diff)
downloadprosody-859c3650e5ad8a3fd101154a5f435ca2589ca4d6.tar.gz
prosody-859c3650e5ad8a3fd101154a5f435ca2589ca4d6.zip
mod_csi_simple: Forget queue counter when disabling optimizations
Otherwise it might not start from zero when enabled again.
-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 a44237d1..fb3d80c5 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -134,6 +134,7 @@ end
function disable_optimizations(session)
filters.remove_filter(session, "stanzas/out", manage_buffer);
filters.remove_filter(session, "bytes/in", flush_buffer);
+ session.csi_counter = nil;
if session.conn and session.conn.resume_writes then
session.conn:resume_writes();
end