Skip to content

Commit bdaf3ea

Browse files
committed
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.
1 parent 123206b commit bdaf3ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/livesync/playground/preview-app-livesync-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export class PreviewAppLiveSyncService implements IPreviewAppLiveSyncService {
7272

7373
public async stopLiveSync(): Promise<void> {
7474
this.$previewSdkService.stop();
75+
this.$previewDevicesService.updateConnectedDevices([]);
7576
}
7677

7778
private async initializePreviewForDevice(data: IPreviewAppLiveSyncData, device: Device): Promise<FilesPayload> {

0 commit comments

Comments
 (0)