summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/SessionServantManager.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-11-28 10:18:06 -0500
committerBernard Normier <bernard@zeroc.com>2007-11-28 10:18:06 -0500
commit844be6638da4dd0fb4a7acd33f758fa3352d1341 (patch)
treedc41641ef0d9899d274930bf2c29511ddce81525 /cpp/src/IceGrid/SessionServantManager.cpp
parentMerge branch 'master' of ssh://cvs.zeroc.com/home/git/ice (diff)
downloadice-844be6638da4dd0fb4a7acd33f758fa3352d1341.tar.bz2
ice-844be6638da4dd0fb4a7acd33f758fa3352d1341.tar.xz
ice-844be6638da4dd0fb4a7acd33f758fa3352d1341.zip
Fixed various bugs
Diffstat (limited to 'cpp/src/IceGrid/SessionServantManager.cpp')
-rw-r--r--cpp/src/IceGrid/SessionServantManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/SessionServantManager.cpp b/cpp/src/IceGrid/SessionServantManager.cpp
index 23823caf4b7..8cbedf9b4f0 100644
--- a/cpp/src/IceGrid/SessionServantManager.cpp
+++ b/cpp/src/IceGrid/SessionServantManager.cpp
@@ -81,7 +81,7 @@ SessionServantManager::addSession(const Ice::ObjectPtr& session, const Ice::Conn
// Keep track of all the connections which have an admin session to allow access
// to server admin objects.
//
- if(category != "" && con != 0)
+ if(!category.empty() && con != 0)
{
_adminConnections.insert(con);
_adminCallbackRouter->addMapping(category, con);
@@ -113,7 +113,7 @@ SessionServantManager::setSessionControl(const Ice::ObjectPtr& session,
//
// Allow invocations on server admin objects.
//
- if(p->second.category != "" && _serverAdminRouter)
+ if(!p->second.category.empty() && _serverAdminRouter)
{
Ice::StringSeq seq;
seq.push_back(_serverAdminCategory);
@@ -179,12 +179,12 @@ SessionServantManager::removeSession(const Ice::ObjectPtr& session)
// If this is an admin session, remove its connection from the admin connections.
//
- if(p->second.category != "" && p->second.connection)
+ if(!p->second.category.empty() && p->second.connection)
{
assert(_adminConnections.find(p->second.connection) != _adminConnections.end());
_adminConnections.erase(_adminConnections.find(p->second.connection));
- _adminConnections.erase(p->second.connection);
+ _adminCallbackRouter->removeMapping(p->second.category);
}
_sessions.erase(p);