Commit 5add4ba
Fix socket reference shape mismatch in queueEvents (#6094)
* Fix socket shape mismatch in queueEvents
Add resolveSocket() helper to handle both ref objects ({ current: Socket })
and raw sockets, fixing a bug where queueEvents would call socket.current
on an already-unwrapped socket, causing processEvent to bail out.
* Address feedback and add JSDoc comment
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 22bf804 commit 5add4ba
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
449 | 459 | | |
450 | 460 | | |
451 | 461 | | |
| |||
471 | 481 | | |
472 | 482 | | |
473 | 483 | | |
474 | | - | |
| 484 | + | |
475 | 485 | | |
476 | 486 | | |
477 | 487 | | |
| |||
0 commit comments