Commit 5a33d795 authored by Ian Craggs's avatar Ian Craggs

Make fix for issue #186 work on Windows too

parent 8332e25b
......@@ -173,7 +173,7 @@ int Socket_addSocket(int newSd)
FUNC_ENTRY;
if (ListFindItem(s.clientsds, &newSd, intcompare) == NULL) /* make sure we don't add the same socket twice */
{
if (newSd >= FD_SETSIZE)
if (s.clientsds->count >= FD_SETSIZE)
{
Log(LOG_ERROR, -1, "addSocket: exceeded FD_SETSIZE %d", FD_SETSIZE);
rc = SOCKET_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment