aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-19 22:13:31 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-19 22:13:31 +0000
commit2563702e7fa631efbd8f135309817c9d91bec728 (patch)
treec7e49207eb313884c200567f3ae88d3bc1a607de /src/socket.cpp
parentb0a11f9da2cf930022411e857641eca75b5214de (diff)
downloadlibbu++-2563702e7fa631efbd8f135309817c9d91bec728.tar.gz
libbu++-2563702e7fa631efbd8f135309817c9d91bec728.tar.bz2
libbu++-2563702e7fa631efbd8f135309817c9d91bec728.tar.xz
libbu++-2563702e7fa631efbd8f135309817c9d91bec728.zip
Hey, the socket class closes the socket when the class is destroyed...why...why
wasn't that happening before?
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp1
1 files changed, 1 insertions, 0 deletions
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 )
121 121
122Bu::Socket::~Socket() 122Bu::Socket::~Socket()
123{ 123{
124 close();
124} 125}
125 126
126void Bu::Socket::close() 127void Bu::Socket::close()