Small code style tweak
This commit is contained in:
parent
ba7059a2dc
commit
3c81a4a253
|
@ -84,8 +84,9 @@ bool EventManager::handle_next_events(EventMode mode, sigset_t* sigmask, bool bl
|
|||
continue;
|
||||
|
||||
const int fd = watcher->fd();
|
||||
if (fd != -1)
|
||||
{
|
||||
if (fd == -1)
|
||||
continue;
|
||||
|
||||
max_fd = std::max(fd, max_fd);
|
||||
auto events = watcher->events();
|
||||
if (events & FdEvents::Read)
|
||||
|
@ -95,7 +96,6 @@ bool EventManager::handle_next_events(EventMode mode, sigset_t* sigmask, bool bl
|
|||
if (events & FdEvents::Except)
|
||||
FD_SET(fd, &efds);
|
||||
}
|
||||
}
|
||||
|
||||
bool with_timeout = false;
|
||||
if (m_has_forced_fd)
|
||||
|
|
Loading…
Reference in New Issue
Block a user