Repository navigation
Commit dd8ba0d
fix(runtime): stop closing s.Events in Stop; use Base.StopWatcher (#3)
The events channel is closed by code.Watcher.Start's `defer close` (the
sole sender/closer). Stop also closing it raced that goroutine into a
"close of closed channel" panic on shutdown, crashing the agent. Cancel
the watcher via Base.StopWatcher() and let its deferred close run once.
Requires core with services.Base.StopWatcher (codefly-dev/core#49); the
go.mod bump lands with the next core publish.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8ca36af commit dd8ba0d
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
389 | 386 | | |
390 | 387 | | |
391 | 388 | | |
| |||
0 commit comments