bugfix
This commit is contained in:
@@ -162,8 +162,12 @@ export function ensureVault2(chainId, owner, num) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function doEnsureVault(chainId, owner, num) {
|
async function doEnsureVault(chainId, owner, num) {
|
||||||
socket.emit('ensureVault', chainId, owner, num)
|
await _discoverVaults(owner)
|
||||||
await sleep()
|
if( !useStore().vaults[num] ) {
|
||||||
|
console.log(`requesting vault ${owner} ${num}`)
|
||||||
|
socket.emit('ensureVault', chainId, owner, num)
|
||||||
|
}
|
||||||
|
await sleep(5)
|
||||||
}
|
}
|
||||||
|
|
||||||
const ensureVaultRoutine = new SingletonCoroutine(doEnsureVault, 100, false)
|
const ensureVaultRoutine = new SingletonCoroutine(doEnsureVault, 100, false)
|
||||||
|
|||||||
@@ -116,10 +116,7 @@ function checkVault() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// todo remove automatic vault creation for Alpha 2
|
// todo remove automatic vault creation for Alpha 2
|
||||||
s.$subscribe((mutation, state)=>{
|
s.$subscribe((mutation, state)=>{checkVault()})
|
||||||
console.log('test')
|
|
||||||
checkVault()
|
|
||||||
})
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user