summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/AdapterRegistryI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2004-08-14 02:27:40 +0000
committerBenoit Foucher <benoit@zeroc.com>2004-08-14 02:27:40 +0000
commita1cb0798dffe02820fc6e8d4ee0884331075707a (patch)
tree7f277f5dd8548ca9878be5c545c1c11e18452a16 /cpp/src/IcePack/AdapterRegistryI.cpp
parentIce.StdErr and Ice.StdOut (diff)
downloadice-a1cb0798dffe02820fc6e8d4ee0884331075707a.tar.bz2
ice-a1cb0798dffe02820fc6e8d4ee0884331075707a.tar.xz
ice-a1cb0798dffe02820fc6e8d4ee0884331075707a.zip
Fixed deadlock that would occur if multiple nodes were started at the same
time.
Diffstat (limited to 'cpp/src/IcePack/AdapterRegistryI.cpp')
-rw-r--r--cpp/src/IcePack/AdapterRegistryI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IcePack/AdapterRegistryI.cpp b/cpp/src/IcePack/AdapterRegistryI.cpp
index 1f34ee5e6e8..c0e43498a76 100644
--- a/cpp/src/IcePack/AdapterRegistryI.cpp
+++ b/cpp/src/IcePack/AdapterRegistryI.cpp
@@ -100,7 +100,8 @@ IcePack::AdapterRegistryI::findById(const string& id, const Ice::Current&)
{
try
{
- return AdapterPrx::checkedCast(p->second->ice_collocationOptimization(false));
+ p->second->ice_ping();
+ return AdapterPrx::uncheckedCast(p->second->ice_collocationOptimization(false));
}
catch(const Ice::ObjectNotExistException&)
{