Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

cache: fix panic when running without plex configs

remusb4df1794932aa
diff --git a/backend/cache/handle.go b/backend/cache/handle.go
index 0cb0d6851..d78bbf737 100644
--- a/backend/cache/handle.go
+++ b/backend/cache/handle.go
@@ -148,7 +148,8 @@ func (r *Handle) scaleWorkers(desired int) {
func (r *Handle) confirmExternalReading() {
// if we have a max value of workers
// then we skip this step
- if len(r.workers) > 1 {
+ if len(r.workers) > 1 ||
+ !r.cacheFs().plexConnector.isConfigured() {
return
}
if !r.cacheFs().plexConnector.isPlaying(r.cachedObject) {