- Fixed: prev_node still retained sometimes even when no other nodes are online
This commit is contained in:
sairajzero 2023-07-06 21:59:26 +05:30
parent 928739ce61
commit 0bff57c28b

View File

@ -265,6 +265,9 @@ function reconnectNextNode() {
.catch(error => {
//Case: No other node is online
console.info(error);
//close prev node connection if inactive
if(_prevNode.id)
_prevNode.close();
//Serve all nodes
for (let sn in floGlobals.supernodes)
DB.createTable(sn)