From 5ec5237571ddf4495b0d3db43529c97e0aef12d3 Mon Sep 17 00:00:00 2001 From: Carl de Billy Date: Mon, 4 Nov 2024 14:20:47 -0500 Subject: [PATCH] feat: Improved the way pings are done to the remote control server, reducing the delay before the first ping. --- src/Uno.UI.RemoteControl/RemoteControlClient.cs | 2 +- src/Uno.UI.RemoteControl/RemoteControlStatus.cs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Uno.UI.RemoteControl/RemoteControlClient.cs b/src/Uno.UI.RemoteControl/RemoteControlClient.cs index 12f6223f5874..5df9baac1e12 100644 --- a/src/Uno.UI.RemoteControl/RemoteControlClient.cs +++ b/src/Uno.UI.RemoteControl/RemoteControlClient.cs @@ -656,7 +656,7 @@ private void StartKeepAliveTimer() if (Interlocked.CompareExchange(ref _keepAliveTimer, timer, null) is null) { - timer.Change(_keepAliveInterval, _keepAliveInterval); + timer.Change(TimeSpan.Zero, _keepAliveInterval); } } diff --git a/src/Uno.UI.RemoteControl/RemoteControlStatus.cs b/src/Uno.UI.RemoteControl/RemoteControlStatus.cs index f1915e455f34..844ea26b0d9c 100644 --- a/src/Uno.UI.RemoteControl/RemoteControlStatus.cs +++ b/src/Uno.UI.RemoteControl/RemoteControlStatus.cs @@ -18,11 +18,7 @@ public record RemoteControlStatus( /// public bool IsAllGood => State == ConnectionState.Connected -#if !DEBUG - // For debug builds, it's annoying to have the version mismatch preventing the connection - // Only Uno devs should get this issue, let's not block them. && IsVersionValid == true -#endif && MissingRequiredProcessors.IsEmpty && KeepAlive.State == KeepAliveState.Ok && InvalidFrames.Count == 0;