|
@@ -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()
|