From ed8b4aa2974458058584b7dadd4822f860bce1b7 Mon Sep 17 00:00:00 2001 From: "Kristian D. Dimitrov" Date: Thu, 26 Jul 2018 15:04:35 +0300 Subject: [PATCH] fix: ios fast sync restarts app --- lib/services/livesync/ios-device-livesync-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/livesync/ios-device-livesync-service.ts b/lib/services/livesync/ios-device-livesync-service.ts index c857e5a3ec..22a9d56bd4 100644 --- a/lib/services/livesync/ios-device-livesync-service.ts +++ b/lib/services/livesync/ios-device-livesync-service.ts @@ -61,9 +61,9 @@ export class IOSDeviceLiveSyncService extends DeviceLiveSyncServiceBase implemen constants.LIVESYNC_EXCLUDED_FILE_PATTERNS.forEach(pattern => scriptRelatedFiles = _.concat(scriptRelatedFiles, localToDevicePaths.filter(file => minimatch(file.getDevicePath(), pattern, { nocase: true })))); const otherFiles = _.difference(localToDevicePaths, _.concat(scriptFiles, scriptRelatedFiles)); - const shouldRestart = this.canExecuteFastSyncForPaths(otherFiles, projectData, deviceAppData.platform); + const canExecuteFastSync = this.canExecuteFastSyncForPaths(otherFiles, projectData, deviceAppData.platform); - if (shouldRestart || (!liveSyncInfo.useLiveEdit && scriptFiles.length)) { + if (!canExecuteFastSync || (!liveSyncInfo.useLiveEdit && scriptFiles.length)) { await this.restartApplication(deviceAppData, projectData.projectName); return; }