Skip to content

Commit

Permalink
fixes #90940
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Feb 19, 2020
1 parent 8031bfd commit 9d27bbe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/vs/workbench/contrib/debug/browser/debugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,14 +915,13 @@ export class DebugSession implements IDebugSession {
// Disconnects and clears state. Session can be initialized again for a new connection.
private shutdown(): void {
dispose(this.rawListeners);
this.fetchThreadsScheduler = undefined;
this.model.clearThreads(this.getId(), true);
if (this.raw) {
const raw = this.raw;
this.raw.disconnect();
this.raw.dispose();
this.raw = undefined;
raw.disconnect();
raw.dispose();
}
this.fetchThreadsScheduler = undefined;
this.model.clearThreads(this.getId(), true);
this._onDidChangeState.fire();
}

Expand Down

0 comments on commit 9d27bbe

Please sign in to comment.