Merge branch 'master' of http://192.168.0.12:13000/sc/SunlightAggregationManager
This commit is contained in:
commit
8aa79a46e3
4 files changed
+170
-113
No files matched your search
@@ -137,7 +137,7 @@ namespace SunlightAggregationManager.UserClass
|
||||
};
|
||||
#endregion
|
||||
|
||||
while (true)
|
||||
// while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -158,16 +158,16 @@ namespace SunlightAggregationManager.UserClass
|
||||
}));
|
||||
|
||||
await tcpClient.ConnectAsync();//调用连接,当连接不成功时,会抛出异常。
|
||||
break;
|
||||
// break;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
tcpClient.Dispose();//清
|
||||
// tcpClient.Dispose();//清
|
||||
LogGing.ERRDATA(ex);
|
||||
Console.WriteLine("Tcp:" + ex.ToString());
|
||||
await Task.Delay(TimeSpan.FromMinutes(1));
|
||||
Console.WriteLine("Tcp:重试连接...");
|
||||
// await Task.Delay(TimeSpan.FromMinutes(1));
|
||||
// Console.WriteLine("Tcp:重试连接...");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user