Skip to content

Commit

Permalink
poll
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Apr 4, 2024
1 parent 3f216b3 commit 4a7bceb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/dpp/socketengines/poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ struct socket_engine_poll : public socket_engine_base {
int processed = 0;

for (size_t index = 0; index < poll_set.size() && processed < i; index++) {
struct pollfd& pfd = poll_set[index];
const int fd = pfd.fd;
const short revents = pfd.revents;
const int fd = poll_set[index].fd;
const short revents = poll_set[index].revents;

if (revents > 0) {
processed++;
Expand Down Expand Up @@ -159,4 +158,4 @@ struct socket_engine_poll : public socket_engine_base {

std::unique_ptr<socket_engine_base> create_socket_engine() {
return std::make_unique<socket_engine_poll>();
}
}

0 comments on commit 4a7bceb

Please sign in to comment.