Commit b78a2ea
fix: Handle ObjectDisposedException when disposing linked CancellationTokenSource (#1714)
When the engine cancellation token is cancelled, the linked
CancellationTokenSource in PrintProgressExecutor may already be
disposed by the time DisposeAsync is called. This causes an
ObjectDisposedException when CancelAfter is called.
Wrap the CancelAfter call in a try-catch to gracefully handle
this race condition.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7412b8d commit b78a2ea
1 file changed
Lines changed: 8 additions & 1 deletion
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| |||
0 commit comments