diff --git a/package-lock.json b/package-lock.json index 43a09cb31..c6219df17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1497,9 +1497,9 @@ } }, "electron": { - "version": "9.0.4", - "resolved": "https://registry.npmjs.org/electron/-/electron-9.0.4.tgz", - "integrity": "sha512-QzkeZNAiNB7KxcdoQKSoaiVT/GQdB4Vt0/ZZOuU8tIKABAsni2I7ztiAbUzxcsnQsqEBSfChuPuDQ5A4VbbzPg==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/electron/-/electron-9.0.5.tgz", + "integrity": "sha512-bnL9H48LuQ250DML8xUscsKiuSu+xv5umXbpBXYJ0BfvYVmFfNbG3jCfhrsH7aP6UcQKVxOG1R/oQExd0EFneQ==", "dev": true, "requires": { "@electron/get": "^1.0.1", diff --git a/package.json b/package.json index 7ca8c0b21..b5e4dd23b 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ } }, "devDependencies": { - "electron": "^9.0.4", + "electron": "^9.0.5", "electron-builder": "^22.7.0", "husky": "^3.1.0", "prettier": "^2.0.5", diff --git a/src/providers/rainmeterNowPlaying.js b/src/providers/rainmeterNowPlaying.js index 5e64a0da9..fac1c44fd 100644 --- a/src/providers/rainmeterNowPlaying.js +++ b/src/providers/rainmeterNowPlaying.js @@ -38,8 +38,9 @@ function start() { }) ws.on('close', () => { + stop() reconnect = setTimeout(() => { - if (isStarted()) { + if (!isStarted()) { start() } }, 5000)