Skip to content

Commit ed8b4aa

Browse files
author
Kristian D. Dimitrov
committed
fix: ios fast sync restarts app
1 parent 81409aa commit ed8b4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen
6161
constants.LIVESYNC_EXCLUDED_FILE_PATTERNS.forEach(pattern => scriptRelatedFiles = _.concat(scriptRelatedFiles, localToDevicePaths.filter(file => minimatch(file.getDevicePath(), pattern, { nocase: true }))));
6262

6363
const otherFiles = _.difference(localToDevicePaths, _.concat(scriptFiles, scriptRelatedFiles));
64-
const shouldRestart = this.canExecuteFastSyncForPaths(otherFiles, projectData, deviceAppData.platform);
64+
const canExecuteFastSync = this.canExecuteFastSyncForPaths(otherFiles, projectData, deviceAppData.platform);
6565

66-
if (shouldRestart || (!liveSyncInfo.useLiveEdit && scriptFiles.length)) {
66+
if (!canExecuteFastSync || (!liveSyncInfo.useLiveEdit && scriptFiles.length)) {
6767
await this.restartApplication(deviceAppData, projectData.projectName);
6868
return;
6969
}

0 commit comments

Comments
 (0)