Skip to content
Snippets Groups Projects
Commit be0baefe authored by Adrien Béraud's avatar Adrien Béraud
Browse files

net: recompute selectFd in case of rebind

parent 2ac5157a
No related branches found
No related tags found
No related merge requests found
...@@ -294,6 +294,7 @@ UdpSocket::openSockets(const SockAddr& bind4, const SockAddr& bind6) ...@@ -294,6 +294,7 @@ UdpSocket::openSockets(const SockAddr& bind4, const SockAddr& bind6)
} }
if (s4 < 0 && s6 < 0) if (s4 < 0 && s6 < 0)
break; break;
selectFd = std::max({s4, s6, stop_readfd}) + 1;
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment