summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ObjectAdapterI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ObjectAdapterI.cpp')
-rw-r--r--cpp/src/Ice/ObjectAdapterI.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpp/src/Ice/ObjectAdapterI.cpp b/cpp/src/Ice/ObjectAdapterI.cpp
index 09f94d1b1ff..b484d90bb06 100644
--- a/cpp/src/Ice/ObjectAdapterI.cpp
+++ b/cpp/src/Ice/ObjectAdapterI.cpp
@@ -377,7 +377,11 @@ Ice::ObjectAdapterI::findServantLocator(const string& prefix)
{
IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this);
- checkForDeactivation();
+ //
+ // We cannot check for deactivation here, because after
+ // deactivation, there might still be some Incoming objects.
+ //
+ //checkForDeactivation();
map<string, ServantLocatorPtr>::iterator p = _locatorMap.end();
@@ -410,10 +414,14 @@ Ice::ObjectAdapterI::identityToServant(const Identity& ident)
{
IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this);
- checkForDeactivation();
+ //
+ // We cannot check for deactivation here, because after
+ // deactivation, there might still be some Incoming objects.
+ //
+ //checkForDeactivation();
//
- // Don't call checkIdentity. We simply want null to returned
+ // Don't call checkIdentity. We simply want null to be returned
// (e.g., for Direct, Incoming) in case the identity is incorrect
// and therefore no servant can be found.
//