Skip to content

Commit

Permalink
fix: kill process of the locally installed sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
ert78gb committed Aug 25, 2019
1 parent c4e3c77 commit bfba371
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/locally-installed-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ class LocallyInstalledSdk extends BaseEmulator {

return new Promise((resolve, reject) => {

super._stop()
.then(resolve)
.catch(reject);

kill(this._emulator.pid);
super._stop()
.then(resolve)
.catch(reject);

kill(this._emulator.pid, err => {
if (err)
return reject(err);
})
})
}

Expand All @@ -75,7 +78,6 @@ class LocallyInstalledSdk extends BaseEmulator {
this._createDataDirSync();
params.push('--data-dir=' + this._options.dataDir);
}

}

/**
Expand Down

0 comments on commit bfba371

Please sign in to comment.