Skip to content

Commit

Permalink
updateSocial() race condition causing CAS Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
kevodwyer committed Apr 8, 2024
1 parent bd565c9 commit dba624c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/components/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,21 +186,19 @@ module.exports = {
that.$emit("initApp")
that.updateSocial(() => {
// that.$store.commit('CURRENT_MODAL', 'ModalTour');
console.log("Signing in/up took " + (Date.now()-creationStart)+" mS from function call");
if (that.stayLoggedIn) {
let rootKey = context.rootKey.toByteArray();
setRootKeyIntoCacheProm(context.username, rootKey).thenApply(function (isSupported) {
if (isSupported) {
console.log("Offline support enabled");
} else {
console.log("Offline support not available");
}
});
}
});
// that.$store.commit('CURRENT_MODAL', 'ModalTour');
console.log("Signing in/up took " + (Date.now()-creationStart)+" mS from function call");
if (that.stayLoggedIn) {
let rootKey = context.rootKey.toByteArray();
setRootKeyIntoCacheProm(context.username, rootKey).thenApply(function (isSupported) {
if (isSupported) {
console.log("Offline support enabled");
} else {
console.log("Offline support not available");
}
});
}
},
appFromUrl(){
const props = this.getPropsFromUrl();
Expand Down

0 comments on commit dba624c

Please sign in to comment.