aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live/live-manager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/live/live-manager.ts')
-rw-r--r--server/lib/live/live-manager.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts
index 1410889a2..aadd8e308 100644
--- a/server/lib/live/live-manager.ts
+++ b/server/lib/live/live-manager.ts
@@ -408,7 +408,7 @@ class LiveManager {
408 await liveSession.save() 408 await liveSession.save()
409 } 409 }
410 410
411 JobQueue.Instance.createJob({ 411 JobQueue.Instance.createJobAsync({
412 type: 'video-live-ending', 412 type: 'video-live-ending',
413 payload: { 413 payload: {
414 videoId: fullVideo.id, 414 videoId: fullVideo.id,
@@ -421,8 +421,12 @@ class LiveManager {
421 streamingPlaylistId: fullVideo.getHLSPlaylist()?.id, 421 streamingPlaylistId: fullVideo.getHLSPlaylist()?.id,
422 422
423 publishedAt: fullVideo.publishedAt.toISOString() 423 publishedAt: fullVideo.publishedAt.toISOString()
424 } 424 },
425 }, { delay: cleanupNow ? 0 : VIDEO_LIVE.CLEANUP_DELAY }) 425
426 delay: cleanupNow
427 ? 0
428 : VIDEO_LIVE.CLEANUP_DELAY
429 })
426 430
427 fullVideo.state = live.permanentLive 431 fullVideo.state = live.permanentLive
428 ? VideoState.WAITING_FOR_LIVE 432 ? VideoState.WAITING_FOR_LIVE