summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ServerAdapterI.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-09-04 19:23:32 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-09-04 19:23:32 +0000
commitbdeb0007e50f676bf416ca25c493c888548ea7cd (patch)
treef7f25ecd302b273e31d80a420e5667b40900a267 /cpp/src/IcePack/ServerAdapterI.cpp
parentTemporary fix to use binary freeze db (diff)
downloadice-bdeb0007e50f676bf416ca25c493c888548ea7cd.tar.bz2
ice-bdeb0007e50f676bf416ca25c493c888548ea7cd.tar.xz
ice-bdeb0007e50f676bf416ca25c493c888548ea7cd.zip
Added local exceptions ObjectAdapterActiveException and
ObjectAdapterNotRegisteredException. :LocatoRegistry::addAdapter method to setAdapterDirectProxy. Minor IcePack fixes.
Diffstat (limited to 'cpp/src/IcePack/ServerAdapterI.cpp')
-rw-r--r--cpp/src/IcePack/ServerAdapterI.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/IcePack/ServerAdapterI.cpp b/cpp/src/IcePack/ServerAdapterI.cpp
index 5121a6881c6..cbf747f5d8a 100644
--- a/cpp/src/IcePack/ServerAdapterI.cpp
+++ b/cpp/src/IcePack/ServerAdapterI.cpp
@@ -99,7 +99,10 @@ IcePack::ServerAdapterI::setDirectProxy(const Ice::ObjectPrx& prx, const Ice::Cu
// null. We don't allow to overide an existing proxy by another
// non null proxy.
//
- assert(!(prx && _proxy));
+ if(prx && _proxy)
+ {
+ throw AdapterActiveException();
+ }
_proxy = prx;
_notified = true;