std::string ecu_name = itr->first;
HMI_DEBUG("ECU Names %s", ecu_name.c_str());
- if (itr->second.connectedSocket() != -1 || !itr->second.masterMode())
+ if (itr->second.connectedSocket() != -1 || itr->first == this->ecu_name)
{
cnt++;
HMI_DEBUG("Already Connected");
HMI_DEBUG("Try Connection");
connectToServer(ecu_name);
}
+
+ HMI_DEBUG("Wait Connection");
+
}
if (cnt == (int)this->wm_socket.size())