summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibCore/CSocket.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibCore/CSocket.cpp b/Libraries/LibCore/CSocket.cpp
index ca83b97be5..f9bfd1b3bf 100644
--- a/Libraries/LibCore/CSocket.cpp
+++ b/Libraries/LibCore/CSocket.cpp
@@ -18,6 +18,7 @@ CSocket::CSocket(Type type, CObject* parent)
CSocket::~CSocket()
{
+ close();
}
bool CSocket::connect(const String& hostname, int port)