diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-12-24 18:56:47 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-12-24 18:56:47 +0000 |
commit | 7beaff764ccdd06f0e6852fc8091ee61189b1a2b (patch) | |
tree | 2bb5beb77cb98ff5528496736a221e01487834f9 /src/serversocket.cpp | |
parent | 262c1489b10663f817f7c2bb11a61d0c9a8d8439 (diff) | |
download | libbu++-7beaff764ccdd06f0e6852fc8091ee61189b1a2b.tar.gz libbu++-7beaff764ccdd06f0e6852fc8091ee61189b1a2b.tar.bz2 libbu++-7beaff764ccdd06f0e6852fc8091ee61189b1a2b.tar.xz libbu++-7beaff764ccdd06f0e6852fc8091ee61189b1a2b.zip |
Strange, I never actually made any of the server code clean up behind itself
in the deconstructors. When you deleted a server it wouldn't close it's
sockets. We never noticed because servers normally last the entire lifetime
of the program they're in.
Diffstat (limited to 'src/serversocket.cpp')
-rw-r--r-- | src/serversocket.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/serversocket.cpp b/src/serversocket.cpp index 1908a8a..946d0d3 100644 --- a/src/serversocket.cpp +++ b/src/serversocket.cpp | |||
@@ -66,6 +66,7 @@ Bu::ServerSocket::ServerSocket(const FString &sAddr,int nPort, int nPoolSize) : | |||
66 | 66 | ||
67 | Bu::ServerSocket::~ServerSocket() | 67 | Bu::ServerSocket::~ServerSocket() |
68 | { | 68 | { |
69 | ::close( nServer ); | ||
69 | } | 70 | } |
70 | 71 | ||
71 | void Bu::ServerSocket::startServer( struct sockaddr_in &name, int nPoolSize ) | 72 | void Bu::ServerSocket::startServer( struct sockaddr_in &name, int nPoolSize ) |