mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 13:32:33 +02:00
net, refactor: Fix style in CConnman::StopNodes
This commit is contained in:
parent
229ac1892d
commit
8c8237a4a1
@ -2644,10 +2644,13 @@ void CConnman::StopNodes()
|
||||
}
|
||||
|
||||
// Close listening sockets.
|
||||
for (ListenSocket& hListenSocket : vhListenSocket)
|
||||
if (hListenSocket.socket != INVALID_SOCKET)
|
||||
if (!CloseSocket(hListenSocket.socket))
|
||||
for (ListenSocket& hListenSocket : vhListenSocket) {
|
||||
if (hListenSocket.socket != INVALID_SOCKET) {
|
||||
if (!CloseSocket(hListenSocket.socket)) {
|
||||
LogPrintf("CloseSocket(hListenSocket) failed with error %s\n", NetworkErrorString(WSAGetLastError()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (CNode* pnode : vNodesDisconnected) {
|
||||
DeleteNode(pnode);
|
||||
|
Loading…
Reference in New Issue
Block a user