summaryrefslogtreecommitdiff
path: root/internal/cli/command_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-08 10:12:37 +0300
committerPaul Buetow <paul@buetow.org>2026-04-08 10:12:37 +0300
commit14995ca7a76e2a72a2169def7f55f3b9e2433ee2 (patch)
treea4009a0dcc0473ec7cabf41f56312d8e8eeb1cc9 /internal/cli/command_test.go
parentd04a2b91fac52d5ff170b96f4f11846ddf7e01b8 (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