mirror of
https://github.com/TangentFoxy/lovebird.git
synced 2025-07-28 11:02:19 +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:
@@ -550,8 +550,9 @@ end
|
|||||||
|
|
||||||
function lovebird.update()
|
function lovebird.update()
|
||||||
if not lovebird.inited then lovebird.init() end
|
if not lovebird.inited then lovebird.init() end
|
||||||
local client = lovebird.server:accept()
|
while 1 do
|
||||||
if client then
|
local client = lovebird.server:accept()
|
||||||
|
if not client then break end
|
||||||
client:settimeout(2)
|
client:settimeout(2)
|
||||||
local addr = client:getsockname()
|
local addr = client:getsockname()
|
||||||
if lovebird.checkwhitelist(addr) then
|
if lovebird.checkwhitelist(addr) then
|
||||||
|
Reference in New Issue
Block a user