Decrease sleep time in heartbeat function

Reduce sleep duration in heartbeat check from 5 seconds to 0.5 seconds.
This commit is contained in:
CadenCoaster
2025-10-19 09:32:27 -07:00
committed by GitHub
parent 9912203e5e
commit 0434991f77

View File

@@ -165,7 +165,7 @@ local function heartbeat_f()
heartbeat = false
interactions.send({protocol="heartbeat"}, v.sender)
parallel.waitForAny(function()
sleep(5)
sleep(0.5)
end, function()
while not heartbeat do
sleep()