From efd6b87811351cde592ac48247190e682ad02aea Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Mon, 16 Jun 2014 15:55:39 +0200 Subject: small net cleanup - add comment for disabling sigpipe - add closing comment in compat.h - remove redundant check in net.h --- src/net.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 2d9325abf9..a8795a4760 100644 --- a/src/net.h +++ b/src/net.h @@ -356,12 +356,11 @@ public: ~CNode() { - if (hSocket != INVALID_SOCKET) - { - CloseSocket(hSocket); - } + CloseSocket(hSocket); + if (pfilter) delete pfilter; + GetNodeSignals().FinalizeNode(GetId()); } -- cgit v1.2.3