Merge pull request #21544 from nicelulu/fix_fd_ready

Fix incorrect fd_ready assignment in NuKeeperTCPHandler.
This commit is contained in:
alesapin 2021-03-09 18:23:24 +03:00 committed by GitHub
commit bbfb6c385d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@ struct SocketInterruptablePollWrapper
if (rc >= 1 && poll_buf[0].revents & POLLIN)
socket_ready = true;
if (rc == 2 && poll_buf[1].revents & POLLIN)
if (rc >= 1 && poll_buf[1].revents & POLLIN)
fd_ready = true;
#endif
}