Skip to content

Commit 3bfa2de

Browse files
committed
fix: reset deviceLostTimer after clearing the device's timeout
1 parent b2f87bf commit 3bfa2de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class PreviewDevicesService extends EventEmitter implements IPreviewDevic
4848
private raiseDeviceFound(device: Device) {
4949
if (this.deviceLostTimers[device.id]) {
5050
clearTimeout(this.deviceLostTimers[device.id]);
51+
this.deviceLostTimers[device.id] = null;
5152
}
5253

5354
this.emit(DeviceDiscoveryEventNames.DEVICE_FOUND, device);

0 commit comments

Comments
 (0)