Skip to content

Commit 8f04fc8

Browse files
authored
Merge pull request #3776 from NativeScript/kddimitrov/fix-fast-sync-ios
fix: ios fast sync restarts app
2 parents 81409aa + ed8b4aa commit 8f04fc8

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)