X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_connection.cpp;h=3600cd4701026ce13fd9cf89a61b66e7e6aa5a67;hb=f7536d2b6ff552e7c4849b36d9b6e140c5b1b9aa;hp=16bb2d68664bfb534ae5da72d893144745b637ce;hpb=ac17da7010c6bd90240a641d503991ca5d0cb41a;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_connection.cpp b/src/wm_connection.cpp index 16bb2d6..3600cd4 100644 --- a/src/wm_connection.cpp +++ b/src/wm_connection.cpp @@ -557,7 +557,7 @@ int WMConnection::connectToEcu() 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"); @@ -569,6 +569,9 @@ int WMConnection::connectToEcu() HMI_DEBUG("Try Connection"); connectToServer(ecu_name); } + + HMI_DEBUG("Wait Connection"); + } if (cnt == (int)this->wm_socket.size())