Network/SocketPoller: Fix potential bug on Connect (Posix)

This commit is contained in:
Jérôme Leclercq 2018-01-05 15:39:35 +01:00
parent 34b8027764
commit 98a03cb543
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ namespace Nz
tv.tv_sec = static_cast<long>(msTimeout / 1000ULL);
tv.tv_usec = static_cast<long>((msTimeout % 1000ULL) * 1000ULL);
int ret = select(0, nullptr, &localSet, &localSet, (msTimeout > 0) ? &tv : nullptr);
int ret = select(handle + 1, nullptr, &localSet, &localSet, (msTimeout > 0) ? &tv : nullptr);
if (ret == SOCKET_ERROR)
{
int code = GetLastErrorCode(handle, error);