Comment formatting

Removed incorrect comments to be more inline with windows and linux. Put
comment on line 812 on top of code.
This commit is contained in:
Chris Millsap 2017-04-12 18:54:59 -04:00
parent db3ffab832
commit 55f3430571

View file

@ -809,7 +809,8 @@ NetSocket Net::openConnectTo(const char *addressString)
error = Net::WrongProtocolType;
}
if (error == NoError || error == NeedHostLookup) // Open socket
// Open socket
if (error == NoError || error == NeedHostLookup)
{
handleFd = openSocket();
}
@ -826,9 +827,9 @@ NetSocket Net::openConnectTo(const char *addressString)
if (::connect(socketFd, (struct sockaddr *)&ipAddr, sizeof(ipAddr)) == -1 &&
errno != EINPROGRESS)
{
error = PlatformNetState::getLastError(); // Output this error if not 10035 then close
error = PlatformNetState::getLastError();
if (error != Net::WouldBlock) // Resource temporarily unavailable.
if (error != Net::WouldBlock)
{
Con::errorf("Error connecting %s: %s",
addressString, strerror(errno));