This commit is contained in:
sc committed 2026-07-18 00:45:36 +08:00
commit 8aa79a46e3
4 files changed
+170 -113

No files matched your search

+5 -5
View File
@@ -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:重试连接...");
}
}
}