mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Skip for loop iteration if json.parse throws error
This commit is contained in:
parent
20baeab65e
commit
b9f3061831
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue