another fix for GH #1458 - handle case when all sockets are invalid

This commit is contained in:
Guenter Obiltschnig 2016-10-18 18:13:52 +02:00
parent 017adf836f
commit a8502dcccf

View File

@ -147,6 +147,8 @@ int Socket::select(SocketList& readList, SocketList& writeList, SocketList& exce
}
epollSize = eventLast - eventsIn;
if (epollSize == 0) return 0;
epollfd = epoll_create(1);
if (epollfd < 0)
{