Skip to content

Commit

Permalink
Kill Android instrumentation and nullify the object when it crashes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemmiz authored Mar 7, 2018
1 parent 2ce10e4 commit eb6f759
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions detox/src/devices/AndroidDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class AndroidDriver extends DeviceDriverBase {

this.instrumentationProcess.on('close', (code, signal) => {
log.verbose(`instrumentationProcess terminated due to receipt of signal ${signal}`);
this.terminateInstrumentation();
});

return this.instrumentationProcess.pid;
Expand Down

0 comments on commit eb6f759

Please sign in to comment.