Comparison

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
comparison
equal deleted inserted replaced
10825:2d002a4af144 10826:4f7226d5ee30
132 end 132 end
133 133
134 function disable_optimizations(session) 134 function disable_optimizations(session)
135 filters.remove_filter(session, "stanzas/out", manage_buffer); 135 filters.remove_filter(session, "stanzas/out", manage_buffer);
136 filters.remove_filter(session, "bytes/in", flush_buffer); 136 filters.remove_filter(session, "bytes/in", flush_buffer);
137 session.csi_counter = nil;
137 if session.conn and session.conn.resume_writes then 138 if session.conn and session.conn.resume_writes then
138 session.conn:resume_writes(); 139 session.conn:resume_writes();
139 end 140 end
140 end 141 end
141 142