net: recompute selectFd in case of rebind

This commit is contained in:
Adrien Béraud committed 2019-06-22 22:51:56 -04:00
1 parent 2ac5157ab8
commit be0baefee8
1 file changed
+1
+1
View File
@@ -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;
}
}
}