fixed if for nextBackupSupernodeToSyncDataBeforeActingAsBackupSupernodeNodeRequest

This commit is contained in:
Abhishek Sinha 2020-04-15 14:03:57 +05:30
parent e5cbf58787
commit 7cdeac499d

View File

@ -29205,7 +29205,7 @@
// If connected with Backup Supernode, request it to sync data. // If connected with Backup Supernode, request it to sync data.
const closestSuList = await readAllDB("myClosestSupernodes"); const closestSuList = await readAllDB("myClosestSupernodes");
if (!closestSuList[0].is_live) { if (`${WS}://${closestSuList[0].ip}/`!==websocket.url) {
const switchMyWS = new backupSupernodesWebSocketObject(); const switchMyWS = new backupSupernodesWebSocketObject();
const connectedWSServerFloId = await switchMyWS.getFloIdFromWSUrl( const connectedWSServerFloId = await switchMyWS.getFloIdFromWSUrl(
websocket.url websocket.url