# HG changeset patch # User Kim Alvefur # Date 1589036746 -7200 # Node ID 4f7226d5ee301fa1a8743bc3672684af9a18b455 # Parent 2d002a4af144564407baf6b3d9b1c4aefcb529fe mod_csi_simple: Forget queue counter when disabling optimizations Otherwise it might not start from zero when enabled again. diff -r 2d002a4af144 -r 4f7226d5ee30 plugins/mod_csi_simple.lua --- 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