Remove useless async function.

This commit is contained in:
슈리튬 2021-09-04 17:32:19 +09:00 committed by GitHub
parent 00b90c4a55
commit e57181684f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))