diff --git a/lib/appium.js b/lib/appium.js index 4accbee70..452167411 100644 --- a/lib/appium.js +++ b/lib/appium.js @@ -24,6 +24,7 @@ var DT_IOS = "ios" var Appium = function (args) { this.args = args; + this.args.fastReset = !this.args.fullReset && !this.args.noReset; this.serverArgs = _.clone(args); this.rest = null; this.webSocket = null; @@ -34,8 +35,6 @@ var Appium = function (args) { this.oldDesiredCapabilities = {}; this.session = null; this.preLaunched = false; - this.fastReset = !this.args.fullReset && !this.args.noReset; - this.args.fastReset = this.fastReset; this.sessionOverride = this.args.sessionOverride; this.resetting = false; this.defCommandTimeoutMs = this.args.defaultCommandTimeout * 1000;