diff options
author | Marc Laukien <marc@zeroc.com> | 2002-02-14 04:16:37 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-02-14 04:16:37 +0000 |
commit | 0f6931918a5fe32cd90fb9f599682838f48cb716 (patch) | |
tree | 3201933dcf9691bffd803ed0116895dbf5645d8a /cpp/src/IcePack/Forward.cpp | |
parent | Removed file that shouldn't be present until after merging FreezeXML (diff) | |
download | ice-0f6931918a5fe32cd90fb9f599682838f48cb716.tar.bz2 ice-0f6931918a5fe32cd90fb9f599682838f48cb716.tar.xz ice-0f6931918a5fe32cd90fb9f599682838f48cb716.zip |
fixes, simplifications
Diffstat (limited to 'cpp/src/IcePack/Forward.cpp')
-rw-r--r-- | cpp/src/IcePack/Forward.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/cpp/src/IcePack/Forward.cpp b/cpp/src/IcePack/Forward.cpp index 5c8829cc05a..b8a97961828 100644 --- a/cpp/src/IcePack/Forward.cpp +++ b/cpp/src/IcePack/Forward.cpp @@ -24,21 +24,10 @@ IcePack::Forward::Forward(const CommunicatorPtr& communicator, const AdminPtr& a _activator = new Activator(_communicator); _activator->start(); - PropertiesPtr properties = communicator->getProperties(); - string value; - - value = properties->getProperty("IcePack.Activator.WaitTime"); - if (value.length()) - { - _waitTime = atoi(value.c_str()); - if (_waitTime < 0) - { - _waitTime = 0; - } - } - else + _waitTime = atoi(properties->getPropertyWithDefault("IcePack.Activator.WaitTime", "10").c_str()); + if (_waitTime < 0) { - _waitTime = 10; + _waitTime = 0; } #endif } |