Using replaceLocalParticipant

This commit is contained in:
Pascal Serrarens 2025-05-28 16:46:47 +02:00
parent 0400c646fa
commit e48ab979b0

View File

@ -35,6 +35,7 @@ namespace RoboidControl {
if (this.port == 0)
this.isIsolated = true;
Participant.AddParticipant(this);
Participant.ReplaceLocalParticipant(this);
}
/// <summary>
/// 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;