From b9f306183150a33e77c10f14173de0676913b52b Mon Sep 17 00:00:00 2001 From: Mashintime Date: Sun, 12 Feb 2023 11:16:30 -0500 Subject: [PATCH] Skip for loop iteration if json.parse throws error --- gui/sock.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/sock.js b/gui/sock.js index 812212c6..2cc197b2 100644 --- a/gui/sock.js +++ b/gui/sock.js @@ -171,6 +171,8 @@ client.on("data", function (socketdata) { socketLog.info(e); // "SyntaxError socketLog.info(socketchunk[i]); socketchunk = ""; + //If we're here, I don't think we want to process any data that may be in data variable + continue; } }