Fixed infinite loop causing lib to hang

This commit is contained in:
RemixDev 2021-05-31 23:02:54 +02:00
parent a71f86b000
commit 5ec2e82fcb

View file

@ -19,7 +19,7 @@ class Lyrics {
this.syncID3.push([syncLyricsJson[line].line, milliseconds])
}else{
let notEmptyLine = line + 1
while (syncLyricsJson[notEmptyLine].line == "") notEmptyLine = line + 1
while (syncLyricsJson[notEmptyLine].line == "") notEmptyLine += 1
timestamp = syncLyricsJson[notEmptyLine].lrc_timestamp
}
this.sync += timestamp + syncLyricsJson[line].line + "\r\n"