summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Server.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-02 15:25:35 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-02 15:25:35 +0000
commitd99431205bc8c179b7cd52d4934818cddb29290c (patch)
treef7327563eedf2f86ca5ac37b0487d6dfc93f2bae /cpp/src/IcePatch/Server.cpp
parentmore IcePatch work (diff)
downloadice-d99431205bc8c179b7cd52d4934818cddb29290c.tar.bz2
ice-d99431205bc8c179b7cd52d4934818cddb29290c.tar.xz
ice-d99431205bc8c179b7cd52d4934818cddb29290c.zip
fixes
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r--cpp/src/IcePatch/Server.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/cpp/src/IcePatch/Server.cpp b/cpp/src/IcePatch/Server.cpp
index 4b24fd43fa8..1e804670ddd 100644
--- a/cpp/src/IcePatch/Server.cpp
+++ b/cpp/src/IcePatch/Server.cpp
@@ -134,9 +134,9 @@ IcePatch::Server::run(int argc, char* argv[])
properties->getPropertyAsIntWithDefault("IcePatch.UpdatePeriod", 60));
if(updatePeriod != IceUtil::Time())
{
- if(updatePeriod < IceUtil::Time::seconds(10))
+ if(updatePeriod < IceUtil::Time::seconds(1))
{
- updatePeriod = IceUtil::Time::seconds(10);
+ updatePeriod = IceUtil::Time::seconds(1);
}
updater = new Updater(adapter, updatePeriod);
updater->start();
@@ -198,18 +198,19 @@ IcePatch::Updater::run()
// Just loop if we're busy.
//
}
- catch(const Exception& ex)
+ catch(const ConnectFailedException&)
{
//
- // If we are interrupted due to a shutdown, don't print
- // any exceptions. Exceptions are normal in such case, for
- // example, ObjectAdapterDeactivatedException.
+ // This exception can be raised if the adapter is shutdown
+ // while this thread is still running. In such case, we
+ // terminate this thread.
//
- if(!Application::isShutdownFromInterrupt())
- {
- Error out(_logger);
- out << "exception during update:\n" << ex;
- }
+ break;
+ }
+ catch(const Exception& ex)
+ {
+ Error out(_logger);
+ out << "exception during update:\n" << ex;
}
if(_destroy)
@@ -243,7 +244,7 @@ IcePatch::Updater::cleanup(const FileDescSeq& fileDescSeq)
if(directoryDesc)
{
//
- // Force .md5 files to be created and orphaned files to be
+ // Force MD5 files to be created and orphaned files to be
// removed.
//
cleanup(directoryDesc->directory->getContents());
@@ -254,7 +255,7 @@ IcePatch::Updater::cleanup(const FileDescSeq& fileDescSeq)
assert(regularDesc);
//
- // Force .bz2 files to be created.
+ // Force BZ2 files to be created.
//
regularDesc->regular->getBZ2Size();
}