cache: fix panic when running without plex configs

This commit is contained in:
remusb 2018-06-13 15:03:06 +03:00
parent d18928962c
commit 4df1794932
1 changed files with 2 additions and 1 deletions

View File

@ -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) {