summaryrefslogtreecommitdiff
path: root/cpp/src/IceDiscovery/PluginI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceDiscovery/PluginI.cpp')
-rw-r--r--cpp/src/IceDiscovery/PluginI.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/IceDiscovery/PluginI.cpp b/cpp/src/IceDiscovery/PluginI.cpp
index 32802631c43..fd4d6dbdf03 100644
--- a/cpp/src/IceDiscovery/PluginI.cpp
+++ b/cpp/src/IceDiscovery/PluginI.cpp
@@ -107,7 +107,12 @@ PluginI::initialize()
try
{
// Ensure we can establish a connection to the multicast proxy
- lookupPrx->ice_getConnection();
+ // but don't block.
+ Ice::AsyncResultPtr result = lookupPrx->begin_ice_getConnection();
+ if(result->sentSynchronously())
+ {
+ lookupPrx->end_ice_getConnection(result);
+ }
}
catch(const Ice::LocalException& ex)
{