Remove useless async function.
This commit is contained in:
parent
00b90c4a55
commit
e57181684f
@ -89,7 +89,7 @@ export class LiveStreaming{
|
|||||||
if(Number(segment.split('sq/')[1].split('/')[0]) !== this.packet_count){
|
if(Number(segment.split('sq/')[1].split('/')[0]) !== this.packet_count){
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
await new Promise(async (resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
let stream = got.stream(this.base_url + segment)
|
let stream = got.stream(this.base_url + segment)
|
||||||
this.request = stream
|
this.request = stream
|
||||||
stream.on('data', (chunk: any) => this.stream.write(chunk))
|
stream.on('data', (chunk: any) => this.stream.write(chunk))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user