diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2009-01-19 22:13:31 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-19 22:13:31 +0000 |
| commit | 2563702e7fa631efbd8f135309817c9d91bec728 (patch) | |
| tree | c7e49207eb313884c200567f3ae88d3bc1a607de | |
| parent | b0a11f9da2cf930022411e857641eca75b5214de (diff) | |
| download | libbu++-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 '')
| -rw-r--r-- | src/socket.cpp | 1 |
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 | ||
| 122 | Bu::Socket::~Socket() | 122 | Bu::Socket::~Socket() |
| 123 | { | 123 | { |
| 124 | close(); | ||
| 124 | } | 125 | } |
| 125 | 126 | ||
| 126 | void Bu::Socket::close() | 127 | void Bu::Socket::close() |
