Commit 3109e85
committed
Prevent spurious ODEs when StreamableHttpClientSessionTransport is disposed multiple times
- This is the same approach we use in McpEndpoint and SseWriter
- I went for a minimal change, but I can copy this to TransportBase if we like to use it for all derived types
- We could also update AutoDetectingClientSessionTransport.InitializeAsync to avoid this, but we shouldn't have to1 parent 3bc0c7d commit 3109e85
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
141 | 152 | | |
142 | 153 | | |
143 | 154 | | |
| |||
0 commit comments