Removed FAIL message when trying ::accept() an already closed Socket::Server.

This commit is contained in:
Thulinma 2019-05-22 15:15:54 +02:00
parent 335a26df60
commit 8d17d5f6c4

View file

@ -1272,7 +1272,9 @@ Socket::Connection Socket::Server::accept(bool nonblock){
// we could do this through accept4 with a flag, but that call is non-standard...
if (r < 0){
if ((errno != EWOULDBLOCK) && (errno != EAGAIN) && (errno != EINTR)){
if (errno != EINVAL){
FAIL_MSG("Error during accept: %s. Closing server socket %d.", strerror(errno), sock);
}
close();
}
return Socket::Connection();