summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch/Server.cpp')
-rw-r--r--cpp/src/IcePatch/Server.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/src/IcePatch/Server.cpp b/cpp/src/IcePatch/Server.cpp
index 60a06d91d16..df0ddf5aa3d 100644
--- a/cpp/src/IcePatch/Server.cpp
+++ b/cpp/src/IcePatch/Server.cpp
@@ -185,16 +185,17 @@ IcePatch::Updater::run()
catch(const Exception& ex)
{
//
- // Log other exceptions only if we are not destroyed.
+ // Log other exceptions only if we are not destroyed and
+ // if we were not interrupted.
//
- if(!_destroy)
+ if(!_destroy && !Application::interrupted())
{
Error out(_logger);
out << "exception during update:\n" << ex;
}
}
- if(_destroy)
+ if(_destroy || Application::interrupted())
{
break;
}