From 2563702e7fa631efbd8f135309817c9d91bec728 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 19 Jan 2009 22:13:31 +0000 Subject: Hey, the socket class closes the socket when the class is destroyed...why...why wasn't that happening before? --- src/socket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/socket.cpp b/src/socket.cpp index c3781b0..47e33b2 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -121,6 +121,7 @@ Bu::Socket::Socket( const Bu::FString &sAddr, int nPort, int nTimeout ) Bu::Socket::~Socket() { + close(); } void Bu::Socket::close() -- cgit v1.2.3