mirror of
https://github.com/rclone/rclone.git
synced 2025-03-17 20:27:52 +02:00
cache: fix panic when running without plex configs
This commit is contained in:
parent
d18928962c
commit
4df1794932
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() {
|
func (r *Handle) confirmExternalReading() {
|
||||||
// if we have a max value of workers
|
// if we have a max value of workers
|
||||||
// then we skip this step
|
// then we skip this step
|
||||||
if len(r.workers) > 1 {
|
if len(r.workers) > 1 ||
|
||||||
|
!r.cacheFs().plexConnector.isConfigured() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !r.cacheFs().plexConnector.isPlaying(r.cachedObject) {
|
if !r.cacheFs().plexConnector.isPlaying(r.cachedObject) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user