1
0
Fork 0

Fix stuck S3 client

This commit is contained in:
Chocobozzz 2025-03-17 14:47:49 +01:00
parent 575ec2beaf
commit 10c5f44e1a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 8 additions and 0 deletions

View file

@ -160,6 +160,8 @@ export async function makeHLSFileAvailable (playlist: MStreamingPlaylistVideo, f
bucketInfo: CONFIG.OBJECT_STORAGE.STREAMING_PLAYLISTS
})
logger.debug('Fetched HLS file %s from object storage to %s.', key, destination, lTags())
return destination
}

View file

@ -334,6 +334,12 @@ export async function muxToMergeVideoFiles (options: {
for (const destination of tmpDestinations) {
await remove(destination)
}
for (const input of inputs) {
if (input instanceof Readable) {
if (!input.destroyed) input.destroy()
}
}
}
}