mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Check if sessionManager exists (#5811)
This commit is contained in:
@@ -306,7 +306,7 @@ export class ClientSession implements IClientSession {
|
|||||||
*/
|
*/
|
||||||
public async shutdown(): Promise<void> {
|
public async shutdown(): Promise<void> {
|
||||||
// Always try to shut down session
|
// Always try to shut down session
|
||||||
if (this._session && this._session.id) {
|
if (this._session && this._session.id && this.notebookManager && this.notebookManager.sessionManager) {
|
||||||
await this.notebookManager.sessionManager.shutdown(this._session.id);
|
await this.notebookManager.sessionManager.shutdown(this._session.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user