diff topology/node/StartTopologyNode.cs @ 71:1169915705ab default tip

fix TopologyNode connect
author KaitoMaeshiro <aosskaito@cr.ie.u-ryukyu.ac.jp>
date Sun, 06 Feb 2022 16:47:41 +0900
parents 312de6b900bc
children
line wrap: on
line diff
--- a/topology/node/StartTopologyNode.cs	Fri Feb 04 19:38:19 2022 +0900
+++ b/topology/node/StartTopologyNode.cs	Sun Feb 06 16:47:41 2022 +0900
@@ -9,12 +9,12 @@
     {
         public StartTopologyNode(CodeGearManager cgm, TopologyNodeConfig conf, CodeGear startCg) : base(cgm)
         {
+            cgm.Setup(new TopologyNode());
             cgm.GetLocalDGM().Put("startCG", startCg);
             cgm.GetLocalDGM().Put("topologyNodeConfig", conf);
-            cgm.Setup(new TopologyNode());
         }
 
-        public StartTopologyNode(TopologyNodeConfig conf, CodeGear startCg) : this(CreateCgm(conf.localPort), conf,
-            startCg) { }
+        public StartTopologyNode(TopologyNodeConfig conf, CodeGear startCg) : 
+            this(CreateCgm(conf.localPort), conf, startCg) { }
     }
 }