From 39f46e5f3c767bdbde4addcf7b59a5bb41b0f1bf Mon Sep 17 00:00:00 2001 From: gcw_MV9p2JJN Date: Sun, 1 Feb 2026 19:24:33 +0800 Subject: [PATCH] 1 --- RIZO.Service/PLCbackTask/MES_PLC_InterationTask.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RIZO.Service/PLCbackTask/MES_PLC_InterationTask.cs b/RIZO.Service/PLCbackTask/MES_PLC_InterationTask.cs index 4fc6d84..65b47dd 100644 --- a/RIZO.Service/PLCbackTask/MES_PLC_InterationTask.cs +++ b/RIZO.Service/PLCbackTask/MES_PLC_InterationTask.cs @@ -50,7 +50,8 @@ namespace RIZO.Service.PLCbackTask if (!isConnected) { _logger.Error("Failed to connect to PLC."); - break; + Task.Delay(1000, stoppingToken); + continue; } }