fix: 修复了break问题

This commit is contained in:
alivender
2025-07-17 14:49:20 +08:00
parent fb13a5c484
commit e4ead72d53
4 changed files with 58 additions and 48 deletions

View File

@@ -210,6 +210,7 @@ public class UDPServer
var firstKey = sortedList.Keys[0];
data = sortedList[firstKey];
sortedList.RemoveAt(0);
break;
}
}
}
@@ -263,6 +264,7 @@ public class UDPServer
// 输出数据
// PrintDataArray(data);
sortedList.Clear();
break;
}
}
@@ -474,7 +476,7 @@ public class UDPServer
sortedList.Add(uniqueTime, data);
// 输出单个数据
PrintData(data);
// PrintData(data);
}
}
catch (TimeoutException)