mod_csi_simple: Forget queue counter when disabling optimizations

Otherwise it might not start from zero when enabled again.
This commit is contained in:
Kim Alvefur 2020-05-09 17:05:46 +02:00
parent cabd89913a
commit 859c3650e5

View file

@ -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