diff options
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 671799f5e99..df331a3fb26 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -116,8 +116,16 @@ IceInternal::ThreadPool::~ThreadPool() { assert(_destroyed); - closeSocket(_fdIntrWrite); - closeSocket(_fdIntrRead); + try + { + closeSocket(_fdIntrWrite); + closeSocket(_fdIntrRead); + } + catch(const LocalException& ex) + { + Error out(_instance->logger()); + out << "exception in `" << _prefix << "' while calling closeSocket():\n" << ex; + } } void |