aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-01-10 14:54:03 +0100
committerKim Alvefur <zash@zash.se>2021-01-10 14:54:03 +0100
commit5cf3eea2454a1763bd741a89dfebab192c94c812 (patch)
treedf24aa6cefcc16c179c018f7a8d6a7646b75ea15 /net/server_epoll.lua
parent365e5b0cb481315525d4f2bfbf478340b8dc08d8 (diff)
downloadprosody-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.lua2
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