diff --git a/lib/appium.js b/lib/appium.js index 197abcfbc..3d344e2e8 100644 --- a/lib/appium.js +++ b/lib/appium.js @@ -488,7 +488,7 @@ Appium.prototype.invoke = function(cb) { // if we're using the safari launcher app, don't end the session when // instruments inevitably crashes out if (!this.isSafariLauncherApp) { - this.cleanupSession(null, cb); + this.cleanupSession(); } }.bind(this);