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);