summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Forward.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePack/Forward.cpp')
-rw-r--r--cpp/src/IcePack/Forward.cpp17
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
}