fix for previous commit

This commit is contained in:
john30
2018-04-15 08:38:24 +02:00
parent 4013ecd14c
commit dc12476bc1
+1 -1
View File
@@ -107,7 +107,7 @@ TCPSocket* TCPClient::connect(const string& server, const uint16_t& port, int ti
FD_ZERO(&writefds);
FD_ZERO(&exceptfds);
FD_SET(sfd, &readfds);
ret = pselect(sfd + 1, &readfds, &writefds, &errfds , &tdiff, NULL);
ret = pselect(sfd + 1, &readfds, &writefds, &exceptfds, &tdiff, NULL);
if (ret >= 1 && FD_ISSET(sfd, &exceptfds)) {
ret = -1;
}