mirror of
https://github.com/rxi/lovebird.git
synced 2024-11-15 22:54:21 +00:00
Changed server to accept all waiting requests that frame
Previously the server would have only handled the most recent connection on a frame, it now handles all waiting connections.
This commit is contained in:
parent
62db558f4c
commit
b4e007b035
@ -550,8 +550,9 @@ end
|
||||
|
||||
function lovebird.update()
|
||||
if not lovebird.inited then lovebird.init() end
|
||||
local client = lovebird.server:accept()
|
||||
if client then
|
||||
while 1 do
|
||||
local client = lovebird.server:accept()
|
||||
if not client then break end
|
||||
client:settimeout(2)
|
||||
local addr = client:getsockname()
|
||||
if lovebird.checkwhitelist(addr) then
|
||||
|
Loading…
Reference in New Issue
Block a user