aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/schedulers
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/schedulers')
-rw-r--r--server/lib/schedulers/videos-redundancy-scheduler.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/schedulers/videos-redundancy-scheduler.ts b/server/lib/schedulers/videos-redundancy-scheduler.ts
index 90caed96d..04f601bfb 100644
--- a/server/lib/schedulers/videos-redundancy-scheduler.ts
+++ b/server/lib/schedulers/videos-redundancy-scheduler.ts
@@ -105,7 +105,10 @@ export class VideosRedundancyScheduler extends AbstractScheduler {
105 private async extendsRedundancy (redundancyModel: VideoRedundancyModel) { 105 private async extendsRedundancy (redundancyModel: VideoRedundancyModel) {
106 const redundancy = CONFIG.REDUNDANCY.VIDEOS.STRATEGIES.find(s => s.strategy === redundancyModel.strategy) 106 const redundancy = CONFIG.REDUNDANCY.VIDEOS.STRATEGIES.find(s => s.strategy === redundancyModel.strategy)
107 // Redundancy strategy disabled, remove our redundancy instead of extending expiration 107 // Redundancy strategy disabled, remove our redundancy instead of extending expiration
108 if (!redundancy) await removeVideoRedundancy(redundancyModel) 108 if (!redundancy) {
109 await removeVideoRedundancy(redundancyModel)
110 return
111 }
109 112
110 await this.extendsExpirationOf(redundancyModel, redundancy.minLifetime) 113 await this.extendsExpirationOf(redundancyModel, redundancy.minLifetime)
111 } 114 }