diff options
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp index 80ed509..36d9d6c 100644 --- a/src/server.cpp +++ b/src/server.cpp | |||
@@ -93,8 +93,16 @@ void Bu::Server::scan() | |||
93 | } | 93 | } |
94 | if( FD_ISSET( j, &fdWrite ) ) | 94 | if( FD_ISSET( j, &fdWrite ) ) |
95 | { | 95 | { |
96 | Client *pClient = hClients.get( j ); | 96 | try |
97 | pClient->processOutput(); | 97 | { |
98 | Client *pClient = hClients.get( j ); | ||
99 | pClient->processOutput(); | ||
100 | } | ||
101 | catch( Bu::HashException &e ) | ||
102 | { | ||
103 | // Do nothing, I guess, the client is already dead... | ||
104 | // TODO: Someday, we may want to handle this more graceully. | ||
105 | } | ||
98 | } | 106 | } |
99 | } | 107 | } |
100 | 108 | ||