net: don't check if the listening socket is valid

Listening sockets in `CConnman::vhListenSocket` are always valid
(underlying file descriptor is not `INVALID_SOCKET`).
This commit is contained in:
Vasil Dimov 2021-05-25 15:06:48 +02:00
parent 2a492d4ce5
commit 6c9ee92ffe
No known key found for this signature in database
GPG key ID: 54DF06F64B55CBBF

View file

@ -1640,7 +1640,7 @@ void CConnman::SocketHandlerListening(const std::set<SOCKET>& recv_set)
if (interruptNet) {
return;
}
if (listen_socket.socket != INVALID_SOCKET && recv_set.count(listen_socket.socket) > 0) {
if (recv_set.count(listen_socket.socket) > 0) {
AcceptConnection(listen_socket);
}
}