Commit 597ea47
committed
fix: move connection selection before network enable
The connection selection logic was moved to the beginning of
enableDevice function to ensure it runs before enabling networking.
This prevents potential race conditions where network connections might
change after enabling the device. The connection selection algorithm
now correctly updates maxTs variable when finding the most recent
autoconnect connection.
Log: Fixed connection selection timing issue during device activation
Influence:
1. Test device activation with multiple available connections
2. Verify autoconnect functionality works correctly
3. Check that the most recent connection is properly selected
4. Test network activation with disabled networking
5. Verify connection selection when no autoconnect connections exist
fix: 将连接选择逻辑移到网络启用之前
连接选择逻辑被移到 enableDevice 函数的开头,确保在网络启用之前运行。这可
以防止在启用设备后网络连接可能发生变化的潜在竞争条件。连接选择算法现在在
找到最新的自动连接连接时正确更新 maxTs 变量。
Log: 修复设备激活期间连接选择时机问题
Influence:
1. 测试具有多个可用连接时的设备激活
2. 验证自动连接功能正常工作
3. 检查是否正确选择了最新连接
4. 测试网络禁用状态下的网络激活
5. 验证没有自动连接连接时的连接选择
PMS: BUG-3369351 parent a2b3532 commit 597ea47
1 file changed
+16
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
280 | 296 | | |
281 | 297 | | |
282 | 298 | | |
| |||
295 | 311 | | |
296 | 312 | | |
297 | 313 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
| |||
0 commit comments