summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/IceGrid/SessionServantManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/SessionServantManager.cpp b/cpp/src/IceGrid/SessionServantManager.cpp
index 8a8664e9b30..5084d9eeb03 100644
--- a/cpp/src/IceGrid/SessionServantManager.cpp
+++ b/cpp/src/IceGrid/SessionServantManager.cpp
@@ -176,7 +176,8 @@ SessionServantManager::removeSession(const Ice::ObjectPtr& session)
//
if(p->second.admin && p->second.connection)
{
- _adminConnections.erase(p->second.connection);
+ assert(_adminConnections.find(p->second.connection) != _adminConnections.end());
+ _adminConnections.erase(_adminConnections.find(p->second.connection));
}
_sessions.erase(p);