From 5ec2e82fcb00117c3eb419c02ee2fa3a7d05873d Mon Sep 17 00:00:00 2001 From: RemixDev Date: Mon, 31 May 2021 23:02:54 +0200 Subject: [PATCH] Fixed infinite loop causing lib to hang --- deemix/types/Lyrics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/types/Lyrics.js b/deemix/types/Lyrics.js index d8b92f1..0fbde26 100644 --- a/deemix/types/Lyrics.js +++ b/deemix/types/Lyrics.js @@ -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"