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 committed 2021-11-26 11:58:05 +01:00
1 parent 2a492d4ce5
commit 6c9ee92ffe
1 file changed
+1 -1
+1 -1
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);
}
}