diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-06-22 17:43:54 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-06-22 17:43:54 +0000 |
commit | 0c24068c2b2116e2e8f63cae92ef8093f0fdfe6b (patch) | |
tree | c8b82a59b3264b5a62726c1b9ec1144dfb4092e8 /cpp/src/IceGrid/ServerAdapterI.cpp | |
parent | Committed more fixes for windows compile (diff) | |
download | ice-0c24068c2b2116e2e8f63cae92ef8093f0fdfe6b.tar.bz2 ice-0c24068c2b2116e2e8f63cae92ef8093f0fdfe6b.tar.xz ice-0c24068c2b2116e2e8f63cae92ef8093f0fdfe6b.zip |
Added session tests, completed update tests.
Diffstat (limited to 'cpp/src/IceGrid/ServerAdapterI.cpp')
-rw-r--r-- | cpp/src/IceGrid/ServerAdapterI.cpp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/cpp/src/IceGrid/ServerAdapterI.cpp b/cpp/src/IceGrid/ServerAdapterI.cpp index 698491f8ee5..23546a1f847 100644 --- a/cpp/src/IceGrid/ServerAdapterI.cpp +++ b/cpp/src/IceGrid/ServerAdapterI.cpp @@ -189,20 +189,24 @@ ServerAdapterI::setDirectProxy(const Ice::ObjectPrx& prx, const Ice::Current& cu } } + bool updated = _proxy != prx; _proxy = prx; - NodeObserverPrx observer = _node->getObserver(); - if(observer) + if(updated) { - AdapterDynamicInfo info; - info.id = _id; - info.proxy = _proxy; - try - { - observer->updateAdapter(_node->getName(current), info); - } - catch(const Ice::LocalException&) + NodeObserverPrx observer = _node->getObserver(); + if(observer) { + AdapterDynamicInfo info; + info.id = _id; + info.proxy = _proxy; + try + { + observer->updateAdapter(_node->getName(current), info); + } + catch(const Ice::LocalException&) + { + } } } |