From 4df1794932aa882ae0e2433b8a87850316c32447 Mon Sep 17 00:00:00 2001 From: remusb Date: Wed, 13 Jun 2018 15:03:06 +0300 Subject: [PATCH] cache: fix panic when running without plex configs --- backend/cache/handle.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {