]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/live-manager.ts
Fix redundancy federation in some cases
[github/Chocobozzz/PeerTube.git] / server / lib / live-manager.ts
index 2fb4b774c1234868ebdb5fb51d47316e9781cb84..379f61bdf332de10b9491f2346b4631cb011bdf3 100644 (file)
@@ -505,7 +505,7 @@ class LiveManager {
   private isDurationConstraintValid (streamingStartTime: number) {
     const maxDuration = CONFIG.LIVE.MAX_DURATION
     // No limit
-    if (maxDuration === null) return true
+    if (maxDuration < 0) return true
 
     const now = new Date().getTime()
     const max = streamingStartTime + maxDuration