forked from TrueCloudLab/rclone
cache: fix panic when running without plex configs
This commit is contained in:
parent
d18928962c
commit
4df1794932
1 changed files with 2 additions and 1 deletions
3
backend/cache/handle.go
vendored
3
backend/cache/handle.go
vendored
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue