Fix a few issues reported by static analyzers
This commit is contained in:
1 parent
0ab5ecea13
commit
720e31a511
14 files changed
+11
-28
No files matched your search
@@ -133,7 +133,7 @@ void Poller::stop_watching_send_events(SocketHandler* socket_handler)
|
||||
|
||||
int Poller::poll(const std::chrono::milliseconds& timeout)
|
||||
{
|
||||
if (this->socket_handlers.size() == 0)
|
||||
if (this->socket_handlers.empty())
|
||||
return -1;
|
||||
#if POLLER == POLL
|
||||
int nb_events = ::poll(this->fds, this->nfds, timeout.count());
|
||||
|
||||
Reference in new issue
Block a user