mirror of
https://github.com/appium/appium.git
synced 2026-02-08 10:38:58 -06:00
mitigating against redundant/late session closing
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user