Commit 31940cf1 authored by knowledge4igor's avatar knowledge4igor

Tiny code structure improvement

parent 3beb79cc
......@@ -219,11 +219,10 @@ Listener::run() {
if (errno == EINTR && g_listen_fd == -1) return;
throw Error::system("Polling");
}
else if (ready_fds > 0) {
for (const auto& event: events) {
if (event.tag == shutdownFd.tag())
return;
else {
if (event.flags.hasFlag(Polling::NotifyOn::Read)) {
auto fd = event.tag.value();
if (static_cast<ssize_t>(fd) == listen_fd) {
......@@ -241,8 +240,6 @@ Listener::run() {
}
}
}
}
}
}
void
......
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