Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 2fd228481f3429490a29d5d881bbe236a13fc224 1 parent 21bf661
@jlipps authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/appium.js
View
4 app/appium.js
@@ -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});
Please sign in to comment.
Something went wrong with that request. Please try again.