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

View File

@ -69,7 +69,6 @@ function m_loop()
-- Listen for packets on the return net -- Listen for packets on the return net
local msg = c_waitForMessage() local msg = c_waitForMessage()
if not msg then if not msg then
sleep(1)
return return
end end
if msg["type"] == "pong" then if msg["type"] == "pong" then
@ -83,7 +82,6 @@ function s_loop()
-- Listen for packets from the master -- Listen for packets from the master
local msg = c_waitForMessage() local msg = c_waitForMessage()
if not msg then if not msg then
sleep(1)
return return
end end
if (msg["type"] == "ping") then if (msg["type"] == "ping") then