# HG changeset patch # User Ivo Smits # Date 1401920664 -7200 # Node ID 5d1b72ba44dcfc453e530c0698a4fbc65a1beef5 # Parent 40715b34d0d38c29aab734434eb61f5bab602dcc Small fixes in WorkQueue diff -r 40715b34d0d3 -r 5d1b72ba44dc Util/WorkQueue.cs --- a/Util/WorkQueue.cs Thu Jun 05 00:21:23 2014 +0200 +++ b/Util/WorkQueue.cs Thu Jun 05 00:24:24 2014 +0200 @@ -73,12 +73,12 @@ while (true) { TWork item; lock (queue) { - if (workers >= maxWorkers) { + if (workers > maxWorkers) { workers--; break; } if (queue.Count == 0) { - if (idleWorkers >= maxIdleWorkers) { + if (idleWorkers > maxIdleWorkers) { workers--; queue.TrimExcess(); break;