Commit d8c2353
Fix race condition in BM2 notification handling
Apply the same race condition fix to BM2 that was applied to BM6.
Set m_taskHandle before calling subscribe() to ensure the callback
can properly use the task handle even if notifications arrive immediately.
Changes:
- Set m_taskHandle before subscribe() instead of after
- Clear m_taskHandle on subscription failure
- Matches pattern now used in BM6
This prevents the callback from exiting early due to m_taskHandle
being nullptr when notifications arrive very quickly after subscription.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 3bba55d commit d8c2353
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
325 | | - | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
| |||
0 commit comments