Mercurial > prosody-hg
diff util/timer.lua @ 14190:9b0a65e64697 13.0
util.timer: Reprioritize timers by absolute time
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Tue, 26 May 2026 01:31:31 -0400 |
| parents | d10957394a3c |
| children |
line wrap: on
line diff
--- a/util/timer.lua Tue May 26 01:31:31 2026 -0400 +++ b/util/timer.lua Tue May 26 01:31:31 2026 -0400 @@ -109,7 +109,7 @@ local function reschedule(id, delay) local current_time = get_time(); local event_time = current_time + delay; - h:reprioritize(id, delay); + h:reprioritize(id, event_time); if next_time == nil or event_time < next_time then next_time = event_time; _add_task(next_time - current_time, _on_timer);
