Replaced lambda implementations with calls to the 'full unload' methods

IT should be noted that ClientManager::CheckConnections() no longer
removes a client; instead, it returns a client index that needs to be
removed via another means. This allows ServerApplication to use the 'full
unload' method.
This commit is contained in:
Kayne Ruse
2014-12-19 17:58:50 +11:00
parent 0d9dfad4a5
commit 15ea360b8a
3 changed files with 6 additions and 53 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ int ClientManager::CheckConnections() {
for (auto& it : elementMap) {
if (it.second.GetAttempts() > 2) {
int ret = it.first;
elementMap.erase(it.first);
// elementMap.erase(it.first);
return ret;
}
}