final fix for the ws issue

This commit is contained in:
zadam 2019-10-30 19:43:17 +01:00
parent 8bd52f349a
commit 1a182d1b58
3 changed files with 474 additions and 97 deletions

563
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -79,10 +79,10 @@
},
"devDependencies": {
"electron": "6.0.12",
"electron-builder": "21.2.0",
"electron-builder": "22.1.0",
"electron-compile": "6.4.4",
"electron-installer-debian": "2.0.1",
"electron-packager": "14.0.6",
"electron-packager": "14.1.0",
"electron-rebuild": "1.8.6",
"jsdoc": "3.6.3",
"lorem-ipsum": "2.0.3",

View File

@ -110,8 +110,8 @@ function checkSyncIdListeners() {
}
async function consumeSyncData() {
if (syncDataQueue.length >= 0) {
const allSyncData = syncDataQueue.slice();
if (syncDataQueue.length > 0) {
const allSyncData = syncDataQueue;
syncDataQueue = [];
const outsideSyncData = allSyncData.filter(sync => sync.sourceId !== glob.sourceId);