Skip to content

Commit

Permalink
feat: Improved the way pings are done to the remote control server, r…
Browse files Browse the repository at this point in the history
…educing the delay before the first ping.
  • Loading branch information
carldebilly authored and jeromelaban committed Nov 5, 2024
1 parent 40b7d46 commit ba3a2ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/Uno.UI.RemoteControl/RemoteControlClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/Uno.UI.RemoteControl/RemoteControlStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ public record RemoteControlStatus(
/// </summary>
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;
Expand Down

0 comments on commit ba3a2ce

Please sign in to comment.