- set client socket to be blocking after initial connection to host

This commit is contained in:
Mark Vejvoda 2011-05-14 18:06:41 +00:00
parent 8c59da57cd
commit 753ac061b8

View File

@ -106,6 +106,7 @@ void ClientInterface::connect(const Ip &ip, int port) {
clientSocket->setBlock(false);
clientSocket->connect(ip, port);
connectedTime = time(NULL);
clientSocket->setBlock(true);
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s] END - socket = %d\n",__FILE__,__FUNCTION__,clientSocket->getSocketId());
}