cache: reconnect plex websocket on failures

This commit is contained in:
remusb 2018-06-12 22:58:15 +03:00
parent 13ccb39819
commit 339fbf0df5
2 changed files with 9 additions and 5 deletions

View file

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