From e48ab979b077d355ca5ac7fc91973a40b839d695 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 28 May 2025 16:46:47 +0200 Subject: [PATCH] Using replaceLocalParticipant --- src/Participants/ParticipantUDP.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Participants/ParticipantUDP.cs b/src/Participants/ParticipantUDP.cs index 0fde7f2..26563e1 100644 --- a/src/Participants/ParticipantUDP.cs +++ b/src/Participants/ParticipantUDP.cs @@ -35,6 +35,7 @@ namespace RoboidControl { if (this.port == 0) this.isIsolated = true; Participant.AddParticipant(this); + Participant.ReplaceLocalParticipant(this); } /// /// Create a participant which will try to connect to a site. @@ -79,6 +80,7 @@ namespace RoboidControl { this.remoteSite = new Participant(ipAddress, port, this); Participant.AddParticipant(this); + Participant.ReplaceLocalParticipant(this); } private static ParticipantUDP isolatedParticipant = null;