Fix terminal process leak when closing the window. (#2723)

This commit is contained in:
Adrian Soucup
2021-02-22 20:32:50 +01:00
committed by GitHub
parent 7e399b9490
commit 271c260a36
2 changed files with 5 additions and 5 deletions

View File

@@ -245,9 +245,9 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
this._onProcessTitleChanged.fire(this._currentTitle);
}
public shutdown(immediate: boolean): void {
public async shutdown(immediate: boolean): Promise<void> {
if (immediate) {
this._kill();
await this._kill();
} else {
this._queueProcessExit();
}