summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/ServerAdapterI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2007-11-20 12:02:35 +0100
committerBenoit Foucher <benoit@zeroc.com>2007-11-20 12:02:35 +0100
commita021dbce94296f83bc5feb25a2aa99461bab057d (patch)
tree648a3b5632d7e80006345540f0e2c1a1ddb266fe /cpp/src/IceGrid/ServerAdapterI.cpp
parentMerge branch 'master' of cvs:/home/git/ice (diff)
downloadice-a021dbce94296f83bc5feb25a2aa99461bab057d.tar.bz2
ice-a021dbce94296f83bc5feb25a2aa99461bab057d.tar.xz
ice-a021dbce94296f83bc5feb25a2aa99461bab057d.zip
Fixed bug 2235, other minor fixes
Diffstat (limited to 'cpp/src/IceGrid/ServerAdapterI.cpp')
-rw-r--r--cpp/src/IceGrid/ServerAdapterI.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/cpp/src/IceGrid/ServerAdapterI.cpp b/cpp/src/IceGrid/ServerAdapterI.cpp
index b6835e6d90f..4529bf4e8d8 100644
--- a/cpp/src/IceGrid/ServerAdapterI.cpp
+++ b/cpp/src/IceGrid/ServerAdapterI.cpp
@@ -128,16 +128,16 @@ ServerAdapterI::setDirectProxy(const Ice::ObjectPrx& prx, const Ice::Current&)
// We don't allow to override an existing proxy by another non
// null proxy if the server is not inactive.
//
- // TODO: This check would fail with the new refreshPublishedEndpoints() call.
- // Is some protesction still needed though?
- //
- //if(prx && _proxy)
- //{
- // if(_server->getState() == Active)
- // {
- // throw AdapterActiveException();
- // }
- //}
+ if(!_node->allowEndpointsOverride())
+ {
+ if(prx && _proxy)
+ {
+ if(_server->getState() == Active)
+ {
+ throw AdapterActiveException();
+ }
+ }
+ }
bool updated = _proxy != prx;
_proxy = prx;