Changeset

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
parents 11748:88ba05494d17
children 11752:6427e2642976 11809:49cfd3628d9d
files net/server_epoll.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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