Remove sleeps from loops, as waitformessage will do that for us

This commit is contained in:
Salt 2024-02-26 00:22:10 -06:00
parent 78be72c4b1
commit bc46c8adef
1 changed files with 0 additions and 2 deletions

View File

@ -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