diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-10 14:54:03 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-10 14:54:03 +0100 |
commit | 5cf3eea2454a1763bd741a89dfebab192c94c812 (patch) | |
tree | df24aa6cefcc16c179c018f7a8d6a7646b75ea15 /net/server_epoll.lua | |
parent | 365e5b0cb481315525d4f2bfbf478340b8dc08d8 (diff) | |
download | prosody-5cf3eea2454a1763bd741a89dfebab192c94c812.tar.gz prosody-5cf3eea2454a1763bd741a89dfebab192c94c812.zip |
net.server_epoll: Fix off-by-one in 2c559953ad41
Thanks tmolitor
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r-- | net/server_epoll.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index e2be448c..53a67dd5 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -123,7 +123,7 @@ local function runtimers(next_delay, min_wait) if readd then for _, timer in pairs(readd) do - timers:insert(timer, timer[2]); + timers:insert(timer, timer[1]); end peek = timers:peek(); end |