mirror of https://github.com/rclone/rclone.git
cache: fix panic when running without plex configs
This commit is contained in:
parent
d18928962c
commit
4df1794932
|
@ -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…
Reference in New Issue