Skip to content

Commit

Permalink
Fixing the Logout/currentUser race condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
MonirAbuHilal committed Jul 17, 2016
1 parent 08ef7e2 commit 541c46e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ParsePatches.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ var patches = {
});
},
logOut: function() {
var promise = oldLogOut();
LocalSubscriptions.currentUser.update();
return promise;
return oldLogOut().then(function() {
LocalSubscriptions.currentUser.update();
});
},
};

Expand Down

0 comments on commit 541c46e

Please sign in to comment.