Browse Source

statusCheckResult 状态判断不对

master
root 2 days ago
parent
commit
c57b71c3a3
  1. 2
      CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs

2
CoreAgent.Infrastructure/Services/Network/CellularNetworkService.cs

@ -216,7 +216,7 @@ public class CellularNetworkService : ICellularNetworkService
// 6. 检查网络端点连接状态 // 6. 检查网络端点连接状态
_logger.LogInformation("开始检查所有网络端点的连接状态"); _logger.LogInformation("开始检查所有网络端点的连接状态");
var statusCheckResult = await _statusMonitor.CheckAllEndPointsStatusAsync(endPoints, _context.CurrentConfigType, isStartOperation:false); var statusCheckResult = await _statusMonitor.CheckAllEndPointsStatusAsync(endPoints, _context.CurrentConfigType, isStartOperation:false);
if (statusCheckResult.IsSuccess) if (!statusCheckResult.IsSuccess)
{ {
_logger.LogWarning("网络端点仍然处于连接状态,停止操作失败"); _logger.LogWarning("网络端点仍然处于连接状态,停止操作失败");
return CellularNetworkOperationResult.Failure("网络端点仍然处于连接状态,停止操作失败"); return CellularNetworkOperationResult.Failure("网络端点仍然处于连接状态,停止操作失败");

Loading…
Cancel
Save