Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 13090:3cea237f9d1d 0.12
mod_csi_simple: Clear delayed active mode timer on disable
It should not be there afterwards. Noticed that it seems to fire some
time after resumption claiming that the queue size is nil, implying
that it may hold a reference to an expired session somehow.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 01 May 2023 14:52:38 +0200 |
parent | 12234:1c47162dd965 |
child | 13091:214a679823e8 |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Wed Apr 19 11:32:53 2023 +0200 +++ b/plugins/mod_csi_simple.lua Mon May 01 14:52:38 2023 +0200 @@ -172,6 +172,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;