From 829c4cdd25552adb01ae405e5566273c5c6f8549 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 28 May 2025 16:53:33 +0200 Subject: [PATCH] ensure root is defined --- src/Participant.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Participant.cs b/src/Participant.cs index 936fd3c..3276855 100644 --- a/src/Participant.cs +++ b/src/Participant.cs @@ -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; - /// /// The Ip Address of a participant. When the participant is local, this contains 0.0.0.0 ///