Files
cc-connect/core
Shawn fd1c51e030 fix(core): protect degraded field read in streamPreview.canPreview (#188)
canPreview() reads sp.degraded without holding sp.mu, but the field is
written under the lock by flushLocked() (from the timer goroutine) and
freeze(). This is a data race between the main event processing
goroutine and the timer callback goroutine.

Acquire sp.mu briefly in canPreview() to read sp.degraded safely.
2026-03-17 10:31:37 +08:00
..
2026-02-28 10:38:24 +08:00