From 30fd1aa491b5fc3b89c28f28c51cb195604ddf81 Mon Sep 17 00:00:00 2001 From: fyf Date: Wed, 10 Jan 2024 16:10:01 +0800 Subject: [PATCH] 3 --- .../com/bonait/bnframework/business/ExecuteTheRecipe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java b/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java index 1a3b08cc..b79cd91c 100644 --- a/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java +++ b/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java @@ -233,7 +233,7 @@ public class ExecuteTheRecipe { String name = "料仓" + silos.num + "下料完成"; final boolean[] IsComplete = {false}; long a = System.currentTimeMillis(); - while (!IsComplete[0]) { + while (!IsComplete[0] && !IsForcedEnd) { if ((System.currentTimeMillis() - a) > 1000 * whileTime) { break; } else { @@ -366,7 +366,7 @@ public class ExecuteTheRecipe { } }); long a = System.currentTimeMillis(); - while (!IsComplete[0]) { + while (!IsComplete[0]&& !IsForcedEnd) { if ((System.currentTimeMillis() - a) > 1000 * whileTime) { break; }