diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts index 6ab7bee90..08d05ef36 100644 --- a/shared/extra-utils/server/servers.ts +++ b/shared/extra-utils/server/servers.ts @@ -272,8 +272,12 @@ async function reRunServer (server: ServerInfo, configOverride?: any) { return server } -function checkTmpIsEmpty (server: ServerInfo) { - return checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css' ]) +async function checkTmpIsEmpty (server: ServerInfo) { + await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls' ]) + + if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) { + await checkDirectoryIsEmpty(server, 'tmp/hls') + } } async function checkDirectoryIsEmpty (server: ServerInfo, directory: string, exceptions: string[] = []) {