mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
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:
parent
2a492d4ce5
commit
6c9ee92ffe
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue