aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/live-manager.ts')
-rw-r--r--server/lib/live-manager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/live-manager.ts b/server/lib/live-manager.ts
index 2fb4b774c..379f61bdf 100644
--- a/server/lib/live-manager.ts
+++ b/server/lib/live-manager.ts
@@ -505,7 +505,7 @@ class LiveManager {
505 private isDurationConstraintValid (streamingStartTime: number) { 505 private isDurationConstraintValid (streamingStartTime: number) {
506 const maxDuration = CONFIG.LIVE.MAX_DURATION 506 const maxDuration = CONFIG.LIVE.MAX_DURATION
507 // No limit 507 // No limit
508 if (maxDuration === null) return true 508 if (maxDuration < 0) return true
509 509
510 const now = new Date().getTime() 510 const now = new Date().getTime()
511 const max = streamingStartTime + maxDuration 511 const max = streamingStartTime + maxDuration