From 3733175b6b53d8f9cdc3e1752110a030508907af Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 May 2023 14:44:57 +0200 Subject: Remove wait before publishing master playlist It doesn't seem necessary --- server/lib/live/shared/muxing-session.ts | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'server/lib/live') diff --git a/server/lib/live/shared/muxing-session.ts b/server/lib/live/shared/muxing-session.ts index 0921254cb..6632499ff 100644 --- a/server/lib/live/shared/muxing-session.ts +++ b/server/lib/live/shared/muxing-session.ts @@ -17,7 +17,6 @@ import { import { VideoFileModel } from '@server/models/video/video-file' import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist' import { MStreamingPlaylistVideo, MUserId, MVideoLiveVideo } from '@server/types/models' -import { wait } from '@shared/core-utils' import { VideoStorage, VideoStreamingPlaylistType } from '@shared/models' import { generateHLSMasterPlaylistFilename, @@ -190,17 +189,6 @@ class MuxingSession extends EventEmitter { if (this.masterPlaylistCreated === true) return try { - let masterPlaylistContent: string - - do { - masterPlaylistContent = await readFile(path, 'utf8') - - if (!masterPlaylistContent) { - await wait(250) - logger.debug('Waiting for master playlist generation for ' + this.videoUUID, this.lTags()) - } - } while (!masterPlaylistContent) // Not generated yet - if (this.streamingPlaylist.storage === VideoStorage.OBJECT_STORAGE) { const url = await storeHLSFileFromFilename(this.streamingPlaylist, this.streamingPlaylist.playlistFilename) -- cgit v1.2.3