aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live-manager.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-15 09:23:28 +0100
committerChocobozzz <me@florianbigard.com>2020-12-15 09:26:37 +0100
commitc9bc850e93295661e743255b8623ac8e2a95c391 (patch)
tree0dd03d2addfa03e0c92947b787af46414253a1c2 /server/lib/live-manager.ts
parentd1742ede65d2a42ffc02ab230287d83d432416f1 (diff)
downloadPeerTube-c9bc850e93295661e743255b8623ac8e2a95c391.tar.gz
PeerTube-c9bc850e93295661e743255b8623ac8e2a95c391.tar.zst
PeerTube-c9bc850e93295661e743255b8623ac8e2a95c391.zip
Use -1 for max live duration unlimited
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