From e67fded3217ba347a3aec228fe0ad0ec4b8d7d26 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 19:51:51 -0400 Subject: [PATCH] fix: client crash from barrel task early return in waitForAny Same bug as the manager: CLIENT_BARREL_NAME == '' caused return inside parallel.waitForAny, killing all tasks instantly. Replace with infinite sleep when barrel is unconfigured. --- inventoryClient.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inventoryClient.lua b/inventoryClient.lua index bdcaf9d..4baf173 100644 --- a/inventoryClient.lua +++ b/inventoryClient.lua @@ -1395,7 +1395,9 @@ local function main() -- Task 5: Client barrel auto-sort (sends to master only when barrel has items) function() - if CLIENT_BARREL_NAME == "" then return end + if CLIENT_BARREL_NAME == "" then + while true do sleep(3600) end + end log.info("INIT", "Client barrel: %s", CLIENT_BARREL_NAME) while true do local barrel = peripheral.wrap(CLIENT_BARREL_NAME)