diff options
Diffstat (limited to 'cpp/src/IcePack/ServerAdapterI.cpp')
-rw-r--r-- | cpp/src/IcePack/ServerAdapterI.cpp | 7 |
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; |