Skip to content

Commit 546d4a3

Browse files
committed
fix: shouldRestart will now return true if the app is not running instead of throwing an exception
1 parent b5af6e6 commit 546d4a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/services/livesync/ios-device-livesync-service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen
2424
}
2525

2626
const appId = projectData.projectIdentifiers.ios;
27-
this.socket = await this.device.getDebugSocket(appId, projectData.projectName);
27+
try {
28+
this.socket = await this.device.getDebugSocket(appId, projectData.projectName);
29+
} catch (err) {
30+
this.$logger.trace(`Error while connecting to the debug socket. Error is:`, err);
31+
}
32+
2833
if (!this.socket) {
2934
return false;
3035
}

0 commit comments

Comments
 (0)