Commit 9800117d authored by knowledge4igor's avatar knowledge4igor

Delete obsolete check

parent 5cf1bb19
...@@ -190,16 +190,14 @@ namespace Polling { ...@@ -190,16 +190,14 @@ 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;
const Tag tag(ev->data.u64); const Tag tag(ev->data.u64);
Event event(tag); Event event(tag);
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