mirror of
https://gitlab.com/RemixDev/deemix-js.git
synced 2024-12-28 18:36:26 +00:00
Fixed infinite loop causing lib to hang
This commit is contained in:
parent
a71f86b000
commit
5ec2e82fcb
|
@ -19,7 +19,7 @@ class Lyrics {
|
||||||
this.syncID3.push([syncLyricsJson[line].line, milliseconds])
|
this.syncID3.push([syncLyricsJson[line].line, milliseconds])
|
||||||
}else{
|
}else{
|
||||||
let notEmptyLine = line + 1
|
let notEmptyLine = line + 1
|
||||||
while (syncLyricsJson[notEmptyLine].line == "") notEmptyLine = line + 1
|
while (syncLyricsJson[notEmptyLine].line == "") notEmptyLine += 1
|
||||||
timestamp = syncLyricsJson[notEmptyLine].lrc_timestamp
|
timestamp = syncLyricsJson[notEmptyLine].lrc_timestamp
|
||||||
}
|
}
|
||||||
this.sync += timestamp + syncLyricsJson[line].line + "\r\n"
|
this.sync += timestamp + syncLyricsJson[line].line + "\r\n"
|
||||||
|
|
Loading…
Reference in a new issue