diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 10:12:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 10:12:37 +0300 |
| commit | 14995ca7a76e2a72a2169def7f55f3b9e2433ee2 (patch) | |
| tree | a4009a0dcc0473ec7cabf41f56312d8e8eeb1cc9 /internal/cli/command_test.go | |
| parent | d04a2b91fac52d5ff170b96f4f11846ddf7e01b8 (diff) | |
fix(gui): make GetActiveJobs concurrency-safe without channel access under lock
GetActiveJobs previously drained and refilled q.jobs while holding RLock,
racing with AddWordWithPrompt and ProcessNextJob on the same channel.
Derive queued jobs from q.results (StatusQueued) and processing jobs from
q.processing, matching the authoritative state already updated under the
mutex elsewhere.
Made-with: Cursor
Diffstat (limited to 'internal/cli/command_test.go')
0 files changed, 0 insertions, 0 deletions
