Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
11748:88ba05494d17 | 11751:a8c9a78c6a4b |
---|---|
120 | 120 |
121 peek = timers:peek(); | 121 peek = timers:peek(); |
122 end | 122 end |
123 | 123 |
124 if readd then | 124 if readd then |
125 for _, timer in pairs(readd) do | 125 for id, timer in pairs(readd) do |
126 timers:insert(timer, timer[1]); | 126 timers:insert(timer, timer[1], id); |
127 end | 127 end |
128 peek = timers:peek(); | 128 peek = timers:peek(); |
129 end | 129 end |
130 | 130 |
131 if peek == nil then | 131 if peek == nil then |