ensure root is defined

This commit is contained in:
Pascal Serrarens 2025-05-28 16:53:33 +02:00
parent e48ab979b0
commit 829c4cdd25

View File

@ -29,6 +29,10 @@ namespace RoboidControl {
public Participant(string ipAddress, int port, Participant localParticipant = null) {
this.ipAddress = ipAddress;
this.port = port;
this.root = Thing.CreateRoot(this);
this.root.name = "Root";
if (localParticipant != null)
this.udpClient = localParticipant.udpClient;
}
@ -39,7 +43,6 @@ namespace RoboidControl {
}
public Thing root = null;
/// <summary>
/// The Ip Address of a participant. When the participant is local, this contains 0.0.0.0
/// </summary>