mirror of
https://github.com/appium/appium.git
synced 2026-04-26 05:18:53 -05:00
Merge pull request #1495 from bootstraponline/fix_null_crash
Avoid crashing when device is null
This commit is contained in:
+2
-1
@@ -727,7 +727,8 @@ Appium.prototype.reset = function(cb) {
|
||||
this.resetting = true;
|
||||
this.stop(function() {
|
||||
logger.info("Restarting app");
|
||||
this.start(this.oldDesiredCapabilities, function() {
|
||||
this.start(this.oldDesiredCapabilities, function(err) {
|
||||
if (err) return cb(err);
|
||||
this.resetting = false;
|
||||
this.device.implicitWaitMs = oldImpWait;
|
||||
this.sessionId = oldId;
|
||||
|
||||
Reference in New Issue
Block a user