Software /
code /
prosody
Diff
net/server_epoll.lua @ 10681:e531273341d3 0.11
net.server_epoll: Fix indentation
Some lines seem to have gotten the wrong indentation, possibly caused by
Meld which often ignores lines with only whitespace changes and leaves
their previous indentation.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Mar 2020 18:07:03 +0100 |
parent | 10059:c8c3f2eba898 |
child | 10683:2f0b7f1d5e75 |
child | 11063:30d3f6f85eb8 |
line wrap: on
line diff
--- a/net/server_epoll.lua Thu Feb 27 20:01:54 2020 +0100 +++ b/net/server_epoll.lua Wed Mar 11 18:07:03 2020 +0100 @@ -102,7 +102,7 @@ if peek > now then next_delay = peek - now; break; - end + end local _, timer, id = timers:pop(); local ok, ret = pcall(timer[2], now); @@ -110,10 +110,10 @@ local next_time = now+ret; timer[1] = next_time; timers:insert(timer, next_time); - end + end peek = timers:peek(); - end + end if peek == nil then return next_delay; end