From 7098ce2de8d586e043d6f8a0e69a17ceaf24942e Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Wed, 30 Jul 2014 10:52:33 -0700 Subject: [PATCH] make appium device.stop use node-style callback this will add some logging for #3258 --- lib/appium.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/appium.js b/lib/appium.js index e1a0038d9f0..ffe67896a80 100644 --- a/lib/appium.js +++ b/lib/appium.js @@ -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)); };