cache: reconnect plex websocket on failures
This commit is contained in:
parent
13ccb39819
commit
339fbf0df5
2 changed files with 9 additions and 5 deletions
4
backend/cache/handle.go
vendored
4
backend/cache/handle.go
vendored
|
@ -147,10 +147,8 @@ func (r *Handle) scaleWorkers(desired int) {
|
|||
|
||||
func (r *Handle) confirmExternalReading() {
|
||||
// if we have a max value of workers
|
||||
// or there's no external confirmation available
|
||||
// then we skip this step
|
||||
if len(r.workers) > 1 ||
|
||||
!r.cacheFs().plexConnector.isConnected() {
|
||||
if len(r.workers) > 1 {
|
||||
return
|
||||
}
|
||||
if !r.cacheFs().plexConnector.isPlaying(r.cachedObject) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue