Skip to content

Commit 8c8237a

Browse files
committed
net, refactor: Fix style in CConnman::StopNodes
1 parent 229ac18 commit 8c8237a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/net.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -2644,10 +2644,13 @@ void CConnman::StopNodes()
26442644
}
26452645

26462646
// Close listening sockets.
2647-
for (ListenSocket& hListenSocket : vhListenSocket)
2648-
if (hListenSocket.socket != INVALID_SOCKET)
2649-
if (!CloseSocket(hListenSocket.socket))
2647+
for (ListenSocket& hListenSocket : vhListenSocket) {
2648+
if (hListenSocket.socket != INVALID_SOCKET) {
2649+
if (!CloseSocket(hListenSocket.socket)) {
26502650
LogPrintf("CloseSocket(hListenSocket) failed with error %s\n", NetworkErrorString(WSAGetLastError()));
2651+
}
2652+
}
2653+
}
26512654

26522655
for (CNode* pnode : vNodesDisconnected) {
26532656
DeleteNode(pnode);

0 commit comments

Comments
 (0)