From bdaf3ea71e4efb5cc320e7e7ae100b7b65a30772 Mon Sep 17 00:00:00 2001 From: fatme Date: Tue, 20 Nov 2018 22:36:35 +0200 Subject: [PATCH] fix: reset devices list when stopLiveSync method is called When stopLiveSync method is called, we want to reset devices list and receive deviceLost event for all connected devices. --- lib/services/livesync/playground/preview-app-livesync-service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/services/livesync/playground/preview-app-livesync-service.ts b/lib/services/livesync/playground/preview-app-livesync-service.ts index 1b8de93f86..02dd1394df 100644 --- a/lib/services/livesync/playground/preview-app-livesync-service.ts +++ b/lib/services/livesync/playground/preview-app-livesync-service.ts @@ -72,6 +72,7 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService { public async stopLiveSync(): Promise { this.$previewSdkService.stop(); + this.$previewDevicesService.updateConnectedDevices([]); } private async initializePreviewForDevice(data: IPreviewAppLiveSyncData, device: Device): Promise {