Revert condition

This commit is contained in:
Uwe Seimet 2023-11-08 15:51:44 +01:00
parent d3ee8b602f
commit c493ec7c39
1 changed files with 1 additions and 2 deletions

View File

@ -336,8 +336,7 @@ bool CTapDriver::HasPendingPackets() const
fds.events = POLLIN | POLLERR;
fds.revents = 0;
poll(&fds, 1, 0);
spdlog::trace(to_string(fds.revents) + " revents");
return !(fds.revents & POLLIN);
return fds.revents & POLLIN;
}
// See https://stackoverflow.com/questions/21001659/crc32-algorithm-implementation-in-c-without-a-look-up-table-and-with-a-public-li