diff --git a/Net/src/Socket.cpp b/Net/src/Socket.cpp index ec95050b8..a9dd2e91f 100644 --- a/Net/src/Socket.cpp +++ b/Net/src/Socket.cpp @@ -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) {