summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-10 23:00:55 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-10 23:00:55 +0000
commitde0794bef207fbf642d236494cc840605f1b51a3 (patch)
treeeb7743659eff0515dcd58db4f6fc32c5904d7c32 /cpp/src
parentFix admin bug. (diff)
downloadice-de0794bef207fbf642d236494cc840605f1b51a3.tar.bz2
ice-de0794bef207fbf642d236494cc840605f1b51a3.tar.xz
ice-de0794bef207fbf642d236494cc840605f1b51a3.zip
fix
Diffstat (limited to 'cpp/src')
-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)