fixed using of rs_socket_error()

This commit is contained in:
csoler 2022-01-31 15:32:04 +01:00
parent e7b822d1cb
commit af0bea49c5
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 47548627adddc444a5d36368bd7a5f5baeed17ba
Subproject commit 55efaf9c730859ef3fc5c6f6049595c1225f9204

View File

@ -134,7 +134,9 @@ bool FsNetworkInterface::checkForNewConnections()
if(clintConnt < 0)
{
if(errno == EWOULDBLOCK)
int err = rs_socket_error();
if(err == EWOULDBLOCK || err == EAGAIN)
;//RsErr()<< "Incoming connection with nothing to read!" << std::endl;
else
RsErr()<< "Error when accepting connection." << std::endl;