Commit 9800117d authored by knowledge4igor's avatar knowledge4igor

Delete obsolete check

parent 5cf1bb19
...@@ -190,7 +190,6 @@ namespace Polling { ...@@ -190,7 +190,6 @@ namespace Polling {
ready_fds = epoll_wait(epoll_fd, evs, maxEvents, timeout.count()); ready_fds = epoll_wait(epoll_fd, evs, maxEvents, timeout.count());
} while (ready_fds < 0 && errno == EINTR); } while (ready_fds < 0 && errno == EINTR);
if (ready_fds > 0) {
for (int i = 0; i < ready_fds; ++i) { for (int i = 0; i < ready_fds; ++i) {
const struct epoll_event *ev = evs + i; const struct epoll_event *ev = evs + i;
...@@ -200,7 +199,6 @@ namespace Polling { ...@@ -200,7 +199,6 @@ namespace Polling {
event.flags = toNotifyOn(ev->events); event.flags = toNotifyOn(ev->events);
events.push_back(event); events.push_back(event);
} }
}
return ready_fds; return ready_fds;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment