Commit a512684
committed
address review: ensure cleanup runs even if user onclose throws
Wrap the user-provided onclose callback in try/finally so response
handler rejection and abort controller firing happen even if the
callback throws. Consistent with the pattern in InMemoryTransport.1 parent c277b48 commit a512684
File tree
1 file changed
+9
-6
lines changed1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | 745 | | |
747 | | - | |
748 | | - | |
749 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
750 | 752 | | |
751 | | - | |
752 | | - | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
753 | 756 | | |
754 | 757 | | |
755 | 758 | | |
| |||
0 commit comments