From 22912968d8c40b9d06e548ff8f4a2ea5ea65e232 Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Thu, 20 Mar 2014 00:01:30 -0700 Subject: [PATCH] fix fastReset going undefined between sessions (fix #2087) --- lib/appium.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;