revert autorun change

This commit is contained in:
Leonardo Venturini
2024-07-30 08:48:32 -04:00
parent ccfef311d1
commit ac83a825fb

View File

@@ -18,6 +18,9 @@ export class AccountsClient extends AccountsCommon {
this._loggingIn = new ReactiveVar(false);
this._loggingOut = new ReactiveVar(false);
this._loginServicesHandle =
this.connection.subscribe("meteor.loginServiceConfiguration");
this._pageLoadLoginCallbacks = [];
this._pageLoadLoginAttemptInfo = null;
@@ -35,15 +38,6 @@ export class AccountsClient extends AccountsCommon {
// This tracks whether callbacks registered with
// Accounts.onLogin have been called
this._loginCallbacksCalled = false;
Tracker.autorun(() => {
// This means that the socket connection is established and not that the `connected` message has been received
// and the first `connect` message is triggered by `onopen` and then `onReset`
if (this.connection.status().connected) {
this._loginServicesHandle =
this.connection.subscribe("meteor.loginServiceConfiguration");
}
})
}
initStorageLocation(options) {