Skip to content

Commit 5d1bdc5

Browse files
authored
Merge pull request #1953 from NativeScript/raikov/fix-livesync-without-platform
Fixed: Livesync not syncing on 2 devices when platform is not specified
2 parents 2514a17 + 2a64274 commit 5d1bdc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/livesync/livesync-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class LiveSyncService implements ILiveSyncService {
5454
liveSyncData.push(this.prepareLiveSyncData(platform));
5555
} else {
5656
this.$devicesService.initialize({ skipInferPlatform: true }).wait();
57+
this.$devicesService.stopDeviceDetectionInterval().wait();
5758
for(let installedPlatform of this.$platformService.getInstalledPlatforms().wait()) {
5859
if (this.$devicesService.getDevicesForPlatform(installedPlatform).length === 0) {
5960
this.$devicesService.startEmulator(installedPlatform).wait();

0 commit comments

Comments
 (0)