Commit a85ae2e
committed
Fix exponential backoff logic and ping race condition in desktop startup
Addresses code review feedback on the adaptive polling mechanism in startDesktopMode():
> Fix exponential backoff to cap at 1000ms instead of cycling back to 100ms
> Move pingInProgress flag before the async pingServer() call to prevent race conditions
> Update showErrorDialog to use clearTimeout consistent with setTimeout-based scheduling1 parent bf654af commit a85ae2e
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 349 | + | |
| 350 | + | |
355 | 351 | | |
356 | 352 | | |
357 | | - | |
358 | | - | |
359 | 353 | | |
360 | 354 | | |
361 | 355 | | |
| |||
0 commit comments