Skip for loop iteration if json.parse throws error

This commit is contained in:
Mashintime 2023-02-12 11:16:30 -05:00
parent 20baeab65e
commit b9f3061831

View file

@ -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;
}
}