From 0a58abab273e47cffe7f3d5e01b32e36b8d333b3 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Fri, 14 Jul 2023 13:01:58 +0000 Subject: [PATCH] merge bitcoin#23601: Don't check if the listening socket is valid --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index 3e144a40bb..be3147e160 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1778,7 +1778,7 @@ void CConnman::SocketHandler() // for (const ListenSocket& hListenSocket : vhListenSocket) { - if (hListenSocket.socket != INVALID_SOCKET && recv_set.count(hListenSocket.socket) > 0) + if (recv_set.count(hListenSocket.socket) > 0) { AcceptConnection(hListenSocket); }