From 0434991f77501e51fdea60b5752c3fb6d141a06c Mon Sep 17 00:00:00 2001 From: CadenCoaster <114967401+cadenthecreator@users.noreply.github.com> Date: Sun, 19 Oct 2025 09:32:27 -0700 Subject: [PATCH] Decrease sleep time in heartbeat function Reduce sleep duration in heartbeat check from 5 seconds to 0.5 seconds. --- meshrouter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshrouter.lua b/meshrouter.lua index f9cbb42..0028d80 100644 --- a/meshrouter.lua +++ b/meshrouter.lua @@ -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()