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 | d9829a86d894245a9c7f10d546b5ce296fd95a25 (patch) | |
tree | df24aa6cefcc16c179c018f7a8d6a7646b75ea15 /net/server_epoll.lua | |
parent | 4cb0cd912590e43417b8fdd93f23ead06c23d542 (diff) | |
download | prosody-d9829a86d894245a9c7f10d546b5ce296fd95a25.tar.gz prosody-d9829a86d894245a9c7f10d546b5ce296fd95a25.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 |