diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2009-07-29 19:01:02 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2009-07-29 19:01:02 +0000 |
| commit | c2292209eb4ece185f555a5c7823726794fe34cc (patch) | |
| tree | 3bad472400717626400238c24057caacb325aac1 /src/server.cpp | |
| parent | ff5688b09c21242c2a0bee70cdfd1ea50b06f4f0 (diff) | |
| download | libbu++-c2292209eb4ece185f555a5c7823726794fe34cc.tar.gz libbu++-c2292209eb4ece185f555a5c7823726794fe34cc.tar.bz2 libbu++-c2292209eb4ece185f555a5c7823726794fe34cc.tar.xz libbu++-c2292209eb4ece185f555a5c7823726794fe34cc.zip | |
Wow, socket, as it turned out, was not able to close after the remote end
disconnected. It now automatically closes down the local end when the remote
end dies.
Diffstat (limited to 'src/server.cpp')
| -rw-r--r-- | src/server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index b7dec41..bfa7880 100644 --- a/src/server.cpp +++ b/src/server.cpp | |||
| @@ -92,6 +92,7 @@ void Bu::Server::scan() | |||
| 92 | if( !pClient->isOpen() ) | 92 | if( !pClient->isOpen() ) |
| 93 | { | 93 | { |
| 94 | onClosedConnection( pClient ); | 94 | onClosedConnection( pClient ); |
| 95 | pClient->close(); | ||
| 95 | hClients.erase( j ); | 96 | hClients.erase( j ); |
| 96 | FD_CLR( j, &fdActive ); | 97 | FD_CLR( j, &fdActive ); |
| 97 | } | 98 | } |
