Skip to content

Commit

Permalink
Update node_debugger.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Apr 30, 2019
1 parent 9fd5e80 commit cacebb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions atom/browser/node_debugger.cc
Expand Up @@ -60,10 +60,7 @@ void NodeDebugger::Start() {

void NodeDebugger::Stop() {
auto* inspector = env_->inspector_agent();
if (inspector == nullptr)
return;

if (inspector->IsListening())
if (inspector && inspector->IsListening())
inspector->Stop();
}

Expand Down
3 changes: 2 additions & 1 deletion spec/node-spec.js
Expand Up @@ -327,7 +327,8 @@ describe('node feature', () => {
})

it('does does not crash when quitting with the inspector connected', function (done) {
this.timeout(240000)
// IPC Electron child process not supported on Windows
if (process.platform === 'win32') return this.skip()
child = ChildProcess.spawn(remote.process.execPath, [path.join(__dirname, 'fixtures', 'module', 'delay-exit'), '--inspect=0'], {
stdio: ['ipc']
})
Expand Down

0 comments on commit cacebb0

Please sign in to comment.