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

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);