summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ServerAdapterI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-09-17 21:24:51 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-09-17 21:24:51 +0000
commit77f2ff38b10a12f7189ab10dba239f7b53417986 (patch)
treee203c24868f907dc8c3f8e5525e1c4c68aa308fb /cpp/src/IcePack/ServerAdapterI.cpp
parentAdded support for --case-sensitive option (attribute casesensitive). (diff)
downloadice-77f2ff38b10a12f7189ab10dba239f7b53417986.tar.bz2
ice-77f2ff38b10a12f7189ab10dba239f7b53417986.tar.xz
ice-77f2ff38b10a12f7189ab10dba239f7b53417986.zip
Added ${parent} variable to get the name of the parent component.
Added attribute targets to server and service elements. More clean up.
Diffstat (limited to 'cpp/src/IcePack/ServerAdapterI.cpp')
-rw-r--r--cpp/src/IcePack/ServerAdapterI.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/IcePack/ServerAdapterI.cpp b/cpp/src/IcePack/ServerAdapterI.cpp
index e26e8432ecb..0ae0c8f2f03 100644
--- a/cpp/src/IcePack/ServerAdapterI.cpp
+++ b/cpp/src/IcePack/ServerAdapterI.cpp
@@ -97,11 +97,14 @@ IcePack::ServerAdapterI::setDirectProxy(const Ice::ObjectPrx& prx, const Ice::Cu
//
// If the adapter proxy is not null the given proxy can only be
// null. We don't allow to overide an existing proxy by another
- // non null proxy.
+ // non null proxy if the server is active.
//
if(prx && _proxy)
{
- throw AdapterActiveException();
+ if(theServer->getState() == Active)
+ {
+ throw AdapterActiveException();
+ }
}
_proxy = prx;