Clear the sessionOverride when cleaning up session

This commit is contained in:
Sam Park
2014-02-03 23:05:42 -08:00
parent bb70d6410b
commit 7917e78934

View File

@@ -669,6 +669,7 @@ Appium.prototype.cleanupSession = function (err, cb) {
this.commandTimeoutMs = this.defCommandTimeoutMs;
var dyingSession = this.sessionId;
this.sessionId = null;
this.sessionOverride = false;
this.device = null;
this.args = _.clone(this.serverArgs);
this.oldDesiredCapabilities = _.clone(this.desiredCapabilities);