We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4273c72 commit 1d13d72Copy full SHA for 1d13d72
packages/services/src/session/manager.ts
@@ -29,15 +29,12 @@ export class SessionManager implements Session.IManager {
29
options.serverSettings || ServerConnection.makeSettings();
30
31
// Initialize internal data.
32
- this._ready = Promise.all([this.requestRunning(), this.requestSpecs()])
33
- .then(_ => undefined)
34
- .catch(_ => undefined)
35
- .then(() => {
36
- if (this.isDisposed) {
37
- return;
38
- }
+ this._ready = (async () => {
+ await Promise.all([this.requestRunning(), this.requestSpecs()]);
+ if (!this.isDisposed) {
39
this._isReady = true;
40
- });
+ }
+ })();
41
42
// Start model and specs polling with exponential backoff.
43
this._pollModels = new Poll({
0 commit comments