| 232 | } |
| 233 | |
| 234 | void TServerFramework::disposeConnectedClient(TConnectedClient* pClient) { |
| 235 | onClientDisconnected(pClient); |
| 236 | delete pClient; |
| 237 | |
| 238 | Synchronized sync(mon_); |
| 239 | if (limit_ - --clients_ > 0) { |
| 240 | mon_.notify(); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | } |
| 245 | } |