[cloud] Store resolved settings for returning to client

This commit is contained in:
Ben Gotow 2016-11-23 14:51:36 -08:00
parent 3f050ea150
commit 30a94a6c9b

View file

@ -47,9 +47,10 @@ class IMAPConnection extends EventEmitter {
connect() {
if (!this._connectPromise) {
this._connectPromise = this._resolveIMAPSettings().then((settings) =>
this._connectPromise = this._resolveIMAPSettings().then((settings) => {
this.resolvedSettings = settings
this._buildUnderlyingConnection(settings)
);
});
}
return this._connectPromise;
}