summaryrefslogtreecommitdiff
path: root/cppe/src
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-06-21 14:57:38 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-06-21 14:57:38 +0000
commit8acfe1f3c4945ba9411d4cf4f9657b5b26738cf7 (patch)
tree271260bc1ea9b34cdaed3b8182f61ae91801ddcb /cppe/src
parentFix for bug #1112 (diff)
downloadice-8acfe1f3c4945ba9411d4cf4f9657b5b26738cf7.tar.bz2
ice-8acfe1f3c4945ba9411d4cf4f9657b5b26738cf7.tar.xz
ice-8acfe1f3c4945ba9411d4cf4f9657b5b26738cf7.zip
Fixed bug 1104
Diffstat (limited to 'cppe/src')
-rw-r--r--cppe/src/IceE/ServantManager.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/cppe/src/IceE/ServantManager.cpp b/cppe/src/IceE/ServantManager.cpp
index 0baae3e9083..809fc5d9242 100644
--- a/cppe/src/IceE/ServantManager.cpp
+++ b/cppe/src/IceE/ServantManager.cpp
@@ -151,7 +151,13 @@ IceInternal::ServantManager::findServant(const Identity& ident, const string& fa
{
IceUtil::Mutex::Lock sync(*this);
- assert(_instance); // Must not be called after destruction.
+ //
+ // This assert is not valid if the adapter dispatch incoming
+ // requests from bidir connections. This method might be called if
+ // requests are received over the bidir connection after the
+ // adapter was deactivated.
+ //
+ //assert(_instance); // Must not be called after destruction.
ServantMapMap::iterator p = _servantMapMapHint;
FacetMap::iterator q;
@@ -206,7 +212,13 @@ IceInternal::ServantManager::hasServant(const Identity& ident) const
{
IceUtil::Mutex::Lock sync(*this);
- assert(_instance); // Must not be called after destruction.
+ //
+ // This assert is not valid if the adapter dispatch incoming
+ // requests from bidir connections. This method might be called if
+ // requests are received over the bidir connection after the
+ // adapter was deactivated.
+ //
+ //assert(_instance); // Must not be called after destruction.
ServantMapMap::iterator p = _servantMapMapHint;
ServantMapMap& servantMapMap = const_cast<ServantMapMap&>(_servantMapMap);