Remove sleeps from loops, as waitformessage will do that for us
This commit is contained in:
parent
78be72c4b1
commit
bc46c8adef
@ -69,7 +69,6 @@ function m_loop()
|
||||
-- Listen for packets on the return net
|
||||
local msg = c_waitForMessage()
|
||||
if not msg then
|
||||
sleep(1)
|
||||
return
|
||||
end
|
||||
if msg["type"] == "pong" then
|
||||
@ -83,7 +82,6 @@ function s_loop()
|
||||
-- Listen for packets from the master
|
||||
local msg = c_waitForMessage()
|
||||
if not msg then
|
||||
sleep(1)
|
||||
return
|
||||
end
|
||||
if (msg["type"] == "ping") then
|
||||
|
Loading…
Reference in New Issue
Block a user