Commit 31c801f
committed
runner-wrapper: buffer errCh to avoid goroutine leak on shutdown
The wrapper start() goroutine always sends exactly one error
into errCh. When Run() exits early due to context cancellation,
the unbuffered channel could block the sender forever.
Make errCh buffered (size 1) to ensure the start goroutine
can always complete and exit cleanly.
No behavior change under normal execution.1 parent f63b909 commit 31c801f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments