fix edge case

This commit is contained in:
Jonathan Lipps
2013-04-03 12:36:17 -07:00
parent a2c3b4dd30
commit 5662496e38
+1
View File
@@ -382,6 +382,7 @@ Appium.prototype.onDeviceDie = function(code, cb) {
// reset app to whatever it was before this session so we don't accidentally
// reuse a bad app
this.args.app = this.origApp;
this.args.bundleId = null;
if (code !== null) {
logger.info('Clearing out appium devices');
this.devices = [];