Merge pull request #1225 from Diapolo/net_cpp_if_clause
fix an incorrect if-clause in net.cpp
This commit is contained in:
commit
d54e6e8359
1 changed files with 1 additions and 1 deletions
|
@ -716,7 +716,7 @@ void ThreadSocketHandler2(void* parg)
|
||||||
if (nSelect == SOCKET_ERROR)
|
if (nSelect == SOCKET_ERROR)
|
||||||
{
|
{
|
||||||
int nErr = WSAGetLastError();
|
int nErr = WSAGetLastError();
|
||||||
if (hSocketMax > (SOCKET) -1)
|
if (hSocketMax != INVALID_SOCKET)
|
||||||
{
|
{
|
||||||
printf("socket select error %d\n", nErr);
|
printf("socket select error %d\n", nErr);
|
||||||
for (unsigned int i = 0; i <= hSocketMax; i++)
|
for (unsigned int i = 0; i <= hSocketMax; i++)
|
||||||
|
|
Loading…
Reference in a new issue