summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-10 14:57:15 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-10 14:57:15 +0000
commit700a5e933df046b65ec293623a55311b70788b24 (patch)
tree60b9a59f09f426c2e323a4650a8abdbfc45b5602 /cpp/src/Ice/ThreadPool.cpp
parentSOCKET changes (diff)
downloadice-700a5e933df046b65ec293623a55311b70788b24.tar.bz2
ice-700a5e933df046b65ec293623a55311b70788b24.tar.xz
ice-700a5e933df046b65ec293623a55311b70788b24.zip
fix
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 88478334e23..5cc696ff9e4 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -326,6 +326,7 @@ IceInternal::ThreadPool::run()
for (u_short i = 0; i < fdSet.fd_count; ++i)
{
SOCKET fd = fdSet.fd_array[i];
+ assert(fd != INVALID_SOCKET);
if (fd == _fdIntrRead)
{
@@ -404,7 +405,7 @@ IceInternal::ThreadPool::run()
if (!_handlerMap.empty())
{
_maxFd = max(_maxFd, (--_handlerMap.end())->first);
- _minFd = min(_minFd, (--_handlerMap.begin())->first);
+ _minFd = min(_minFd, (_handlerMap.begin())->first);
}
if (_handlerMap.empty() || _servers == 0)
{