diff --git a/third_party/electrical_machinery/electrical_machinery.go b/third_party/electrical_machinery/electrical_machinery.go index a4f6442..cb3b196 100644 --- a/third_party/electrical_machinery/electrical_machinery.go +++ b/third_party/electrical_machinery/electrical_machinery.go @@ -134,6 +134,7 @@ func initEMMsg(trainState *state_proto.TrainState) map[int]*message.ElectricMach } func (s *electricalMachineryImpl) initElectricalMachinery() { + s.electricalMachineryUdpClientMap = map[int]udp.UdpClient{} for _, c := range s.runConfig { if &c != nil && c.Ip != "" && c.Open { ep := PointA