WINDOWS IS SUFFERING

This commit is contained in:
Adam Ierymenko 2014-03-25 17:31:03 -07:00
parent 328be8f846
commit 67a85221d5
7 changed files with 114 additions and 74 deletions

View file

@ -485,7 +485,7 @@ void SocketManager::poll(unsigned long timeout)
FD_SET(sockfd,&_readfds);
_fdSetLock.unlock();
if ((int)sockfd > (int)_nfds)
_nfds = sockfd;
_nfds = (int)sockfd;
} catch ( ... ) {
CLOSE_SOCKET(sockfd);
}
@ -518,7 +518,7 @@ void SocketManager::poll(unsigned long timeout)
FD_SET(sockfd,&_readfds);
_fdSetLock.unlock();
if ((int)sockfd > (int)_nfds)
_nfds = sockfd;
_nfds = (int)sockfd;
} catch ( ... ) {
CLOSE_SOCKET(sockfd);
}
@ -662,7 +662,7 @@ void SocketManager::_updateNfds()
if (s->second->_sock > nfds)
nfds = s->second->_sock;
}
_nfds = nfds;
_nfds = (int)nfds;
}
} // namespace ZeroTier