diff --git a/src/network_utils.cpp b/src/network_utils.cpp index ecb0d8449e33bfa93f929d958fcd049b5aeeab2f..31492cb17dcf76a7e60dc1075dd10c8bc0909e53 100644 --- a/src/network_utils.cpp +++ b/src/network_utils.cpp @@ -294,6 +294,7 @@ UdpSocket::openSockets(const SockAddr& bind4, const SockAddr& bind6) } if (s4 < 0 && s6 < 0) break; + selectFd = std::max({s4, s6, stop_readfd}) + 1; } } }