Merge pull request #2859 from sebv/prelaunch-fix

Prelaunch fix
This commit is contained in:
seb vincent
2014-06-16 12:02:42 +08:00
+1 -1
View File
@@ -253,7 +253,7 @@ Appium.prototype.configure = function (args, desiredCaps, cb) {
try {
deviceType = this.getDeviceType(args, desiredCaps);
desiredCaps.checkValidity(deviceType, args.enforceStrictCaps);
if (!args.launch) desiredCaps.checkValidity(deviceType, args.enforceStrictCaps);
} catch (e) {
logger.error(e.message);
return cb(e);