diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2021-05-25 15:06:48 +0200 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-11-26 11:58:05 +0100 |
commit | 6c9ee92ffe390064881ef5bf47e38e345d78a2a1 (patch) | |
tree | e64076db91dfc604203ceebf368be66a62b2cabd /src/net.cpp | |
parent | 2a492d4ce5ec9663a05395141b1568a7ea261146 (diff) |
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`).
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index db496c2185..e17db7e54b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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); } } |