Diff

plugins/mod_csi_simple.lua @ 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
parent 10825:2d002a4af144
child 10827:d8e83d94a99a
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