Skip snapshot caching in case of error

This commit is contained in:
Alex X
2026-01-18 15:48:56 +03:00
parent 38cc05c22d
commit 54eafe9d0a
@@ -60,6 +60,9 @@ func handlerKeyframe(w http.ResponseWriter, r *http.Request) {
}
defer func() {
if b == nil {
return
}
entry = cacheEntry{payload: b, timestamp: time.Now()}
cacheMu.Lock()
if cache == nil {