Fixed #4206 and #4207 open and close notebook quickly issue #4240 (#4255)

* Fixed  #4206 and #4207

* Check if it makes my PR run tests

* Add isReady to JupyterSessionManager
This commit is contained in:
Yurong He
2019-03-04 12:46:27 -08:00
committed by GitHub
parent b4984d7f2d
commit a48e9bc64c
2 changed files with 8 additions and 3 deletions

View File

@@ -150,11 +150,16 @@ export class JupyterSessionManager implements nb.SessionManager {
}
public shutdownAll(): Promise<void> {
return this._sessionManager.shutdownAll();
if (this._isReady) {
return this._sessionManager.shutdownAll();
}
return Promise.resolve();
}
public dispose(): void {
this._sessionManager.dispose();
if (this._isReady) {
this._sessionManager.dispose();
}
}
}