Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Fix #50 - shutdown correctly when requested, with 'restart': true
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Oct 26, 2016
1 parent f388b01 commit 727f1e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,9 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
this._smartStep = args.smartStep;
}

/**
* From DebugSession
*/
public shutdown(): void {
this._inShutdown = true;
this._session.shutdown();
}

/**
Expand Down Expand Up @@ -461,6 +459,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
}

public disconnect(): void {
this.shutdown();
return this.terminateSession('Got disconnect request');
}

Expand Down
5 changes: 0 additions & 5 deletions src/chrome/chromeDebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ export class ChromeDebugSession extends DebugSession {
super.sendResponse(response);
}

public shutdown(): void {
this._debugAdapter.shutdown();
super.shutdown();
}

private onLog(msg: string, level: logger.LogLevel): void {
const outputCategory = level === logger.LogLevel.Error ? 'stderr' : 'stdout';

Expand Down

0 comments on commit 727f1e6

Please sign in to comment.