From 3617382bb0cd5097c34a12f2fa1e8bed69912d40 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 13 Feb 2023 20:42:16 +0600 Subject: [PATCH] more clean up --- src/modules/stream/types.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/stream/types.js b/src/modules/stream/types.js index ef77d238..6c7fd691 100644 --- a/src/modules/stream/types.js +++ b/src/modules/stream/types.js @@ -15,10 +15,10 @@ export function streamDefault(streamInfo, res) { }, isStream: true }); - stream.pipe(res).on('error', (err) => { + stream.pipe(res).on('error', () => { res.end(); }); - stream.on('error', (err) => { + stream.on('error', () => { res.end(); }); } catch (e) { @@ -57,7 +57,7 @@ export function streamLiveRender(streamInfo, res) { ffmpegProcess.on('exit', () => ffmpegProcess.kill()); res.on('finish', () => ffmpegProcess.kill()); res.on('close', () => ffmpegProcess.kill()); - ffmpegProcess.on('error', (err) => { + ffmpegProcess.on('error', () => { ffmpegProcess.kill(); res.end(); }); @@ -101,7 +101,7 @@ export function streamAudioOnly(streamInfo, res) { ffmpegProcess.on('exit', () => ffmpegProcess.kill()); res.on('finish', () => ffmpegProcess.kill()); res.on('close', () => ffmpegProcess.kill()); - ffmpegProcess.on('error', (err) => { + ffmpegProcess.on('error', () => { ffmpegProcess.kill(); res.end(); }); @@ -134,7 +134,7 @@ export function streamVideoOnly(streamInfo, res) { ffmpegProcess.on('exit', () => ffmpegProcess.kill()); res.on('finish', () => ffmpegProcess.kill()); res.on('close', () => ffmpegProcess.kill()); - ffmpegProcess.on('error', (err) => { + ffmpegProcess.on('error', () => { ffmpegProcess.kill(); res.end(); });