bug fix : adding another sleep for 2s

This commit is contained in:
sairajzero 2019-11-17 23:30:48 +05:30
parent a0387132cf
commit da3e5bdad4

View File

@ -6050,8 +6050,9 @@
floSupernode.initSupernode(serverPwd, myFloID).then(async result => { floSupernode.initSupernode(serverPwd, myFloID).then(async result => {
console.log(result) console.log(result)
await sleep(5000) await sleep(5000)
connectToAllBackupSupernode().then(result => { connectToAllBackupSupernode().then(async result => {
console.log(result) console.log(result)
await sleep(2000)
reactor.dispatchEvent("indicate_supernode_up",myFloID) reactor.dispatchEvent("indicate_supernode_up",myFloID)
}) })
}) })