Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
10672:657e61531b33 | 10681:e531273341d3 |
---|---|
100 while peek do | 100 while peek do |
101 | 101 |
102 if peek > now then | 102 if peek > now then |
103 next_delay = peek - now; | 103 next_delay = peek - now; |
104 break; | 104 break; |
105 end | 105 end |
106 | 106 |
107 local _, timer, id = timers:pop(); | 107 local _, timer, id = timers:pop(); |
108 local ok, ret = pcall(timer[2], now); | 108 local ok, ret = pcall(timer[2], now); |
109 if ok and type(ret) == "number" then | 109 if ok and type(ret) == "number" then |
110 local next_time = now+ret; | 110 local next_time = now+ret; |
111 timer[1] = next_time; | 111 timer[1] = next_time; |
112 timers:insert(timer, next_time); | 112 timers:insert(timer, next_time); |
113 end | 113 end |
114 | 114 |
115 peek = timers:peek(); | 115 peek = timers:peek(); |
116 end | 116 end |
117 if peek == nil then | 117 if peek == nil then |
118 return next_delay; | 118 return next_delay; |
119 end | 119 end |
120 | 120 |
121 if next_delay < min_wait then | 121 if next_delay < min_wait then |