From e57181684fb4dda3b49ea5f3ed3a8d877ac7abc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8A=88=EB=A6=AC=ED=8A=AC?= <9804cjh@naver.com> Date: Sat, 4 Sep 2021 17:32:19 +0900 Subject: [PATCH] Remove useless async function. --- play-dl/YouTube/classes/LiveStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-dl/YouTube/classes/LiveStream.ts b/play-dl/YouTube/classes/LiveStream.ts index c6a88b6..2b3062d 100644 --- a/play-dl/YouTube/classes/LiveStream.ts +++ b/play-dl/YouTube/classes/LiveStream.ts @@ -89,7 +89,7 @@ export class LiveStreaming{ if(Number(segment.split('sq/')[1].split('/')[0]) !== this.packet_count){ continue } - await new Promise(async (resolve, reject) => { + await new Promise((resolve, reject) => { let stream = got.stream(this.base_url + segment) this.request = stream stream.on('data', (chunk: any) => this.stream.write(chunk))