From 8880977a608f0b735504f18a624de026cde62da7 Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Fri, 17 Jan 2003 03:58:50 +0000 Subject: ConnectionMonitor --- cpp/src/Ice/ThreadPool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/Ice/ThreadPool.cpp') diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index f403b819a26..87db1874c48 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -249,7 +249,7 @@ IceInternal::ThreadPool::run() fd_set fdSet; memcpy(&fdSet, &_fdSet, sizeof(fd_set)); int ret; - if(_timeout) + if(_timeout > 0) { struct timeval tv; tv.tv_sec = _timeout; @@ -263,7 +263,7 @@ IceInternal::ThreadPool::run() if(ret == 0) // We initiate a shutdown if there is a thread pool timeout. { - assert(_timeout); + assert(_timeout > 0); _timeout = 0; initiateShutdown(); goto repeatSelect; -- cgit v1.2.3