mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
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:
parent
c0906e1c41
commit
f421a50e5a
1 changed files with 4 additions and 3 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue