diff options
author | Brent Eagles <brent@zeroc.com> | 2005-09-07 16:14:20 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-09-07 16:14:20 +0000 |
commit | 4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4 (patch) | |
tree | 5b0d75ebdea90cbdfb6c3955b601ece88ccbceee /cppe/src/IceE/Communicator.cpp | |
parent | Bug 371: closeSocket can hide real errors (diff) | |
download | ice-4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4.tar.bz2 ice-4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4.tar.xz ice-4e631700d66c51a96210e2bcbd8b3f63d8b0b9f4.zip |
revising fixes for bug 431
Diffstat (limited to 'cppe/src/IceE/Communicator.cpp')
-rwxr-xr-x | cppe/src/IceE/Communicator.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/cppe/src/IceE/Communicator.cpp b/cppe/src/IceE/Communicator.cpp index 62cae3c1256..3042bbf89aa 100755 --- a/cppe/src/IceE/Communicator.cpp +++ b/cppe/src/IceE/Communicator.cpp @@ -73,24 +73,13 @@ Ice::Communicator::proxyToString(const ObjectPrx& proxy) const ObjectAdapterPtr Ice::Communicator::createObjectAdapter(const string& name) { - return _instance->objectAdapterFactory()->createObjectAdapter(name); + return createObjectAdapterWithEndpoints(name, getProperties()->getProperty(name + ".Endpoints")); } ObjectAdapterPtr Ice::Communicator::createObjectAdapterWithEndpoints(const string& name, const string& endpoints) { - const string propertyKey = name + ".Endpoints"; - const string originalValue = getProperties()->getProperty(propertyKey); - try - { - getProperties()->setProperty(propertyKey, endpoints); - return createObjectAdapter(name); - } - catch(const AlreadyRegisteredException&) - { - getProperties()->setProperty(propertyKey, originalValue); - throw; - } + return _instance->objectAdapterFactory()->createObjectAdapter(name, endpoints); } #endif |