Commit 1bb5fbb
committed
Avoid 1-2 first chance exceptions on out of order disposal
Disposing of a marshaled object throws when the underlying connection has already been disposed of. These exceptions appear to be innocuous but they are at least false causes for alarm when the program is run under a debugger.
The fix is to arrange to skip when we can predict the exception.1 parent eefa509 commit 1bb5fbb
File tree
2 files changed
+17
-5
lines changed- src/StreamJsonRpc/Reflection
- test/StreamJsonRpc.Tests
2 files changed
+17
-5
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
| 349 | + | |
351 | 350 | | |
352 | | - | |
353 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
354 | 356 | | |
355 | | - | |
| 357 | + | |
| 358 | + | |
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
588 | 597 | | |
589 | 598 | | |
590 | 599 | | |
| |||
0 commit comments