mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
fix an incorrect if-clause in net.cpp
This commit is contained in:
parent
9e11cb53dd
commit
3b6ed2294b
1 changed files with 1 additions and 1 deletions
|
|
@ -716,7 +716,7 @@ void ThreadSocketHandler2(void* parg)
|
|||
if (nSelect == SOCKET_ERROR)
|
||||
{
|
||||
int nErr = WSAGetLastError();
|
||||
if (hSocketMax > (SOCKET) -1)
|
||||
if (hSocketMax != INVALID_SOCKET)
|
||||
{
|
||||
printf("socket select error %d\n", nErr);
|
||||
for (unsigned int i = 0; i <= hSocketMax; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue