Move new code out of network::socket

This commit is contained in:
Igor Pissolati
2025-05-21 11:59:56 -03:00
parent 4b83b20e19
commit d75d70e5ec
4 changed files with 20 additions and 50 deletions

View File

@@ -254,7 +254,7 @@ namespace
{
int16_t socket_events{};
if (poll_events & (AFD_POLL_ACCEPT | AFD_POLL_RECEIVE))
if (poll_events & (AFD_POLL_DISCONNECT | AFD_POLL_ACCEPT | AFD_POLL_RECEIVE))
{
socket_events |= POLLRDNORM;
}