Merge pull request #2934 from xtermjs/tyriar/2933
Fix exception when disposing Terminal twice
This commit is contained in:
@@ -55,6 +55,9 @@ export class RenderService extends Disposable implements IRenderService {
|
|||||||
@IBufferService bufferService: IBufferService
|
@IBufferService bufferService: IBufferService
|
||||||
) {
|
) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
this.register({ dispose: () => this._renderer.dispose() });
|
||||||
|
|
||||||
this._renderDebouncer = new RenderDebouncer((start, end) => this._renderRows(start, end));
|
this._renderDebouncer = new RenderDebouncer((start, end) => this._renderRows(start, end));
|
||||||
this.register(this._renderDebouncer);
|
this.register(this._renderDebouncer);
|
||||||
|
|
||||||
@@ -137,7 +140,6 @@ export class RenderService extends Disposable implements IRenderService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public dispose(): void {
|
public dispose(): void {
|
||||||
this._renderer.dispose();
|
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user