diff options
author | Kim Alvefur <zash@zash.se> | 2020-05-09 17:05:46 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-05-09 17:05:46 +0200 |
commit | efcd07cf8b1aa3bdd1906e11b36c3a5a1b8f47bf (patch) | |
tree | 2f45c90059a7a51c5ee27aed3b2bc698d857e6da /plugins/mod_csi_simple.lua | |
parent | 6f60cb0639b8cdcaaf0f160f7c7f65ee567cf95d (diff) | |
download | prosody-efcd07cf8b1aa3bdd1906e11b36c3a5a1b8f47bf.tar.gz prosody-efcd07cf8b1aa3bdd1906e11b36c3a5a1b8f47bf.zip |
mod_csi_simple: Forget queue counter when disabling optimizations
Otherwise it might not start from zero when enabled again.
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-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 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 |