lijun 4 月之前
父節點
當前提交
4ce631b84f
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      Pas.ScadaService/StartUp.cs

+ 8 - 1
Pas.ScadaService/StartUp.cs

@@ -51,7 +51,14 @@ namespace Pas.ScadaService
             };
             _scada.Start();
             Thread.Sleep(3000);
-            GopTimeCalc.Load(config, sqlConn, GetAllData());
+            try
+            {
+                GopTimeCalc.Load(config, sqlConn, GetAllData());
+            }
+            catch (Exception e)
+            {
+                XTrace.Log.Error(e.ToString());
+            }
             _isStart = true;
         }
         private static List<Model.Data> GetAllData()