aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/scheduler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/scheduler.cxx b/build2/scheduler.cxx
index 9abafbb..da49ffd 100644
--- a/build2/scheduler.cxx
+++ b/build2/scheduler.cxx
@@ -217,7 +217,7 @@ namespace build2
{
lock l (mutex_);
- if (max_active)
+ if (max_active == 0)
max_active = orig_max_active_;
assert (max_active >= init_active_ &&