diff --git a/spwplugin/GR-ESB/gr_esb_bridge.cpp b/spwplugin/GR-ESB/gr_esb_bridge.cpp --- a/spwplugin/GR-ESB/gr_esb_bridge.cpp +++ b/spwplugin/GR-ESB/gr_esb_bridge.cpp @@ -354,12 +354,12 @@ bool GR_ESB_Manager::connectBridge() int timeout=60; if(this->Read_soc->state()==QTcpSocket::UnconnectedState) { - this->Read_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Write_port); + this->Read_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Receive_port); this->Read_soc->waitForConnected(30000); } if(this->Write_soc->state()==QTcpSocket::UnconnectedState) { - this->Write_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Read_port); + this->Write_soc->connectToHost(IP,gresb_Conf[virtualLinkIndex].Transmit_port); this->Write_soc->waitForConnected(30000); } while((this->Read_soc->state()!=QTcpSocket::ConnectedState) && (this->Write_soc->state()!=QTcpSocket::ConnectedState))