From c8663679fe49bcad5a1740e3d5d0a91184f5e605 Mon Sep 17 00:00:00 2001 From: fyf <11621@LAPTOP-04QQU0AO> Date: Sat, 27 Jan 2024 16:50:23 +0800 Subject: [PATCH] 5 --- .../java/com/bonait/bnframework/business/ExecuteTheRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 167ca00c..00979ddd 100644 --- a/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java +++ b/app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java @@ -2115,7 +2115,7 @@ public class ExecuteTheRecipe { int AtPresentTime=delay; if (NoticeAtPresentTime!=null){NoticeAtPresentTime.Run(AtPresentTime);} long startTime = System.currentTimeMillis();// && ConfigName.getInstance().PlcIsConnect - while ((System.currentTimeMillis() - startTime) <= (delay * 1000) && !IsForcedEnd) + while ((System.currentTimeMillis() - startTime) <= (delay * 1000) && !IsForcedEnd && ConfigName.getInstance().PlcIsConnect) { try { Thread.sleep(100);