# HG changeset patch # User Ivo Smits # Date 1412198166 -7200 # Node ID 1474f92cf7e7b19d66cbe890afa7e37e84c160a3 # Parent 04c56f31db37ab6fca861d56dc3dbbd4aa8af194 Regression fix in ThreadPool class diff -r 04c56f31db37 -r 1474f92cf7e7 ThreadPool.cs --- a/ThreadPool.cs Mon Sep 29 01:36:27 2014 +0200 +++ b/ThreadPool.cs Wed Oct 01 23:16:06 2014 +0200 @@ -112,7 +112,7 @@ if (pThreadsMinIdle > value) throw new ArgumentOutOfRangeException("ThreadsMaxIdle", "ThreadsMaxIdle must be greater than or equal to ThreadsMinIdle"); if (value < 0) throw new ArgumentOutOfRangeException("ThreadsMaxIdle", "ThreadsMaxIdle must greater than or equal to 0"); lock (pIdleThreads) { - while (value > pIdleThreads.Count) { + while (value < pIdleThreads.Count) { ThreadInfo T = pIdleThreads.Dequeue(); T.Abort = true; T.WaitHandle.Set();