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