fixed if for nextBackupSupernodeToSyncDataBeforeActingAsBackupSupernodeNodeRequest
This commit is contained in:
parent
e5cbf58787
commit
7cdeac499d
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user