Permalink
Browse files

make sure fast reset doesn't try to work on ios

  • Loading branch information...
1 parent 21bf661 commit 2fd228481f3429490a29d5d881bbe236a13fc224 @jlipps committed Mar 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/appium.js
View
@@ -378,7 +378,7 @@ Appium.prototype.stop = function(cb) {
Appium.prototype.reset = function(cb) {
logger.info("Resetting app mid-session");
- if (!this.fastReset) {
+ if (this.isIos() || !this.fastReset) {
var me = this
, oldId = this.sessionId;
@@ -390,7 +390,7 @@ Appium.prototype.reset = function(cb) {
});
});
} else { // fast reset
- logger.info("Fast reset");
+ logger.info("Android fast reset");
this.device.fastReset(function(err){
if (err) {
cb(null, {status: status.codes.UnknownError.code, value: null});

0 comments on commit 2fd2284

Please sign in to comment.