Commit 5c5ec4f
committed
backends/winrt/client: fix potential race condition for session status
We need to check the current session status *after* registering the
event handler, otherwise we might miss the event if the session
status changes between checking the status and registering the handler.1 parent 0df017d commit 5c5ec4f
2 files changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | 363 | | |
371 | 364 | | |
372 | 365 | | |
373 | 366 | | |
374 | 367 | | |
375 | 368 | | |
376 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
0 commit comments