merge bitcoin#23601: Don't check if the listening socket is valid

This commit is contained in:
Kittywhiskers Van Gogh 2023-07-14 13:01:58 +00:00 committed by UdjinM6
parent 9b36ac6d5d
commit 0a58abab27

View File

@ -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);
}