Skip to content

Commit

Permalink
make appium device.stop use node-style callback
Browse files Browse the repository at this point in the history
this will add some logging for #3258
  • Loading branch information
jlipps committed Jul 30, 2014
1 parent 5a28bae commit 7098ce2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/appium.js
Expand Up @@ -388,11 +388,7 @@ Appium.prototype.stop = function (cb) {
}

logger.info('Shutting down appium session');
this.device.stop(function (code) {
var err;
if (code && code > 0) {
err = new Error("Device exited with code: " + code);
}
this.device.stop(function (err) {
this.cleanupSession(err, cb);
}.bind(this));
};
Expand Down

0 comments on commit 7098ce2

Please sign in to comment.