From 4f5ca9899e6bc7044590e1b118acf8fff4d6bdb8 Mon Sep 17 00:00:00 2001 From: Jyben Date: Thu, 3 Oct 2024 23:25:23 +0200 Subject: [PATCH] fix --- .vscode/launch.json | 17 +++++++++++++++++ app/main-process/ping.js | 3 +++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ef3f9b3 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Main Process", + "type": "node", + "request": "launch", + "cwd": "${workspaceFolder}", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", + "windows": { + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd" + }, + "args" : ["."], + "outputCapture": "std" + } + ] + } \ No newline at end of file diff --git a/app/main-process/ping.js b/app/main-process/ping.js index 5fa62b2..ff02d65 100644 --- a/app/main-process/ping.js +++ b/app/main-process/ping.js @@ -24,6 +24,9 @@ PingWrapper.prototype.execute = function () { const hosts = this._clusters.pops[id].relayAddresses; hosts.forEach(host => { + if (host === undefined) { + return; + } var ping = new Ping(host); ping.send((err, time) => { diff --git a/package-lock.json b/package-lock.json index 7405fb7..97b90e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "csgo-mm-server-picker", - "version": "v1.2.2", + "version": "v1.2.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "csgo-mm-server-picker", - "version": "v1.2.2", + "version": "v1.2.3", "license": "CC-BY-NC-ND-4.0", "dependencies": { "axios": "^0.21.2", diff --git a/package.json b/package.json index 8c8f33a..1faa1e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "csgo-mm-server-picker", - "version": "v1.2.2", + "version": "v1.2.3", "description": "Server picker for CS:GO matchmaking", "main": "main.js", "scripts": {