This commit is contained in:
1 parent
07c08c0599
commit
c7fc79e6ff
1 file changed
+1
-1
@@ -278,7 +278,7 @@ ClientStateConnecting::Process(ClientThread &client)
|
|||||||
|
|
||||||
timeout.tv_sec = 0;
|
timeout.tv_sec = 0;
|
||||||
timeout.tv_usec = CLIENT_WAIT_TIMEOUT_MSEC * 1000;
|
timeout.tv_usec = CLIENT_WAIT_TIMEOUT_MSEC * 1000;
|
||||||
int selectResult = select(data.sockfd, NULL, &writeSet, NULL, &timeout);
|
int selectResult = select(data.sockfd + 1, NULL, &writeSet, NULL, &timeout);
|
||||||
|
|
||||||
if (selectResult > 0) // success
|
if (selectResult > 0) // success
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user