Software /
code /
prosody
Diff
net/server_epoll.lua @ 11751:a8c9a78c6a4b 0.11
net.server_epoll: Fix to preserve ids of readded timers
Likely affected rescheduling but have no reports of this.
After readding a timer, it would have been issued a new id. Rescheduling
would use the previous id, thus not working.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 31 Aug 2021 12:58:38 +0200 |
parent | 11265:957d417eb56e |
child | 11752:6427e2642976 |
child | 11810:fe0cdbad19c3 |
line wrap: on
line diff
--- a/net/server_epoll.lua Sun Aug 15 04:10:36 2021 +0000 +++ b/net/server_epoll.lua Tue Aug 31 12:58:38 2021 +0200 @@ -122,8 +122,8 @@ end if readd then - for _, timer in pairs(readd) do - timers:insert(timer, timer[1]); + for id, timer in pairs(readd) do + timers:insert(timer, timer[1], id); end peek = timers:peek(); end