mitigating against redundant/late session closing

This commit is contained in:
sebv
2014-05-21 15:42:05 +08:00
parent 70227a4005
commit 191963a485

View File

@@ -290,7 +290,7 @@ Appium.prototype.invoke = function (cb) {
cb(null, this.device);
}.bind(this);
this.device.start(onStart, this.cleanupSession.bind(this));
this.device.start(onStart, _.once(this.cleanupSession.bind(this)));
}
};