diff options
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r-- | shared/extra-utils/server/servers.ts | 8 |
1 files changed, 6 insertions, 2 deletions
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) { | |||
272 | return server | 272 | return server |
273 | } | 273 | } |
274 | 274 | ||
275 | function checkTmpIsEmpty (server: ServerInfo) { | 275 | async function checkTmpIsEmpty (server: ServerInfo) { |
276 | return checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css' ]) | 276 | await checkDirectoryIsEmpty(server, 'tmp', [ 'plugins-global.css', 'hls' ]) |
277 | |||
278 | if (await pathExists(join('test' + server.internalServerNumber, 'tmp', 'hls'))) { | ||
279 | await checkDirectoryIsEmpty(server, 'tmp/hls') | ||
280 | } | ||
277 | } | 281 | } |
278 | 282 | ||
279 | async function checkDirectoryIsEmpty (server: ServerInfo, directory: string, exceptions: string[] = []) { | 283 | async function checkDirectoryIsEmpty (server: ServerInfo, directory: string, exceptions: string[] = []) { |