aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-08-31 12:58:38 +0200
committerKim Alvefur <zash@zash.se>2021-08-31 12:58:38 +0200
commit6be7cf935f6305c25a9905e1452c59353ceea202 (patch)
tree8982edca1f49543f942fa827462ede236a1d1d32 /net
parent5f69d4a1292c2766cc70074478aab17258b8f149 (diff)
downloadprosody-6be7cf935f6305c25a9905e1452c59353ceea202.tar.gz
prosody-6be7cf935f6305c25a9905e1452c59353ceea202.zip
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.
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 53a67dd5..1abdc4a4 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -122,8 +122,8 @@ local function runtimers(next_delay, min_wait)
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