diff options
Diffstat (limited to 'cpp/src/IceGrid/ServerAdapterI.cpp')
-rw-r--r-- | cpp/src/IceGrid/ServerAdapterI.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/cpp/src/IceGrid/ServerAdapterI.cpp b/cpp/src/IceGrid/ServerAdapterI.cpp index d00f721cdd9..eef9228ec94 100644 --- a/cpp/src/IceGrid/ServerAdapterI.cpp +++ b/cpp/src/IceGrid/ServerAdapterI.cpp @@ -139,23 +139,10 @@ ServerAdapterI::setDirectProxy(const Ice::ObjectPrx& prx, const Ice::Current&) if(updated) { - NodeObserverPrx observer = _node->getObserver(); - if(observer) - { - AdapterDynamicInfo info; - info.id = _id; - info.proxy = _proxy; - try - { - observer->updateAdapter(_node->getName(), info); - } - catch(const Ice::LocalException&) - { - // - // Expected if the master IceGrid registry is down. - // - } - } + AdapterDynamicInfo info; + info.id = _id; + info.proxy = _proxy; + _node->observerUpdateAdapter(info); } if(_proxy) |