Skip to content

Commit

Permalink
Follow-up to 426a72f: make sure loggingIn goes away in the case of a …
Browse files Browse the repository at this point in the history
…half-complete login method.
  • Loading branch information
glasser committed Nov 20, 2012
1 parent 426a72f commit ba76b0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/accounts-base/accounts_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@
if (reconnected)
return;

if (!options._suppressLoggingIn)
Accounts._setLoggingIn(false);
// Note that we need to call this even if _suppressLoggingIn is true,
// because it could be matching a _setLoggingIn(true) from a
// half-completed pre-reconnect login method.
Accounts._setLoggingIn(false);
if (error || !result) {
error = error || new Error(
"No result from call to " + options.methodName);
Expand Down

0 comments on commit ba76b0f

Please sign in to comment.