Software /
code /
prosody
Changeset
13092:bc46cfe7c037
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 01 May 2023 22:24:13 +0200 |
parents | 13089:41598b7ec543 (current diff) 13091:214a679823e8 (diff) |
children | 13093:93c68c454cb8 |
files | plugins/mod_csi_simple.lua |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sun Apr 30 23:45:55 2023 +0200 +++ b/plugins/mod_csi_simple.lua Mon May 01 22:24:13 2023 +0200 @@ -166,6 +166,10 @@ session.conn:pause_writes(); session.csi_measure_buffer_hold = measure_buffer_hold(); session.csi_counter = 0; + if session.csi_resume then + timer.stop(session.csi_resume); + session.csi_resume = nil; + end filters.add_filter(session, "stanzas/out", manage_buffer); filters.add_filter(session, "bytes/in", flush_buffer); else @@ -177,6 +181,10 @@ filters.remove_filter(session, "stanzas/out", manage_buffer); filters.remove_filter(session, "bytes/in", flush_buffer); session.csi_counter = nil; + if session.csi_resume then + timer.stop(session.csi_resume); + session.csi_resume = nil; + end if session.csi_measure_buffer_hold then session.csi_measure_buffer_hold(); session.csi_measure_buffer_hold = nil;