Fix null error; Fix promise

This commit is contained in:
2024-03-27 22:16:56 +01:00
parent 4e8c3efe6f
commit debd06f258
4 changed files with 19 additions and 7 deletions

View File

@ -41,7 +41,7 @@ function parseOutput(str, callback) {
// Basic rates (MBit/s) : 1 2 5.5 11
// Other rates (MBit/s) : 6 9 12 18 24 36 48 54
for (let i = 1, l = blocks.length; i < l; i++) {
let network = {};
let network = {encrypted: false};
let lines = blocks[i].split('\n');
let regexChannel = /[a-zA-Z0-9()\s]+:[\s]*[0-9]+$/g;
if (!lines || lines.length < 2) {