summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/src/Ice/ThreadPool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 8fc3aa78bb2..936f96907af 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -348,7 +348,7 @@ IceInternal::ThreadPool::run()
_minFd = _fdIntrRead;
if (!_handlerMap.empty())
{
- _maxFd = max(_maxFd, _handlerMap.rbegin()->first);
+ _maxFd = max(_maxFd, (--_handlerMap.end())->first);
_minFd = min(_minFd, _handlerMap.begin()->first);
}
if (_handlerMap.empty() || _servers == 0)