Software /
code /
prosody
Changeset
10826:4f7226d5ee30
mod_csi_simple: Forget queue counter when disabling optimizations
Otherwise it might not start from zero when enabled again.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 09 May 2020 17:05:46 +0200 |
parents | 10825:2d002a4af144 |
children | 10827:d8e83d94a99a |
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 13:50:58 2020 +0200 +++ b/plugins/mod_csi_simple.lua Sat May 09 17:05:46 2020 +0200 @@ -134,6 +134,7 @@ 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