From cff2b2a13aea7cf30c0ef5be449e355594dc80c2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 31 Mar 2009 15:50:03 +0000 Subject: [PATCH] * Doh! --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 1482d6926..f422bca01 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2551,7 +2551,7 @@ void Worker::run(const Goals & _topGoals) if (!children.empty() || !waitingForAWhile.empty()) waitForInput(); else { - if (maxBuildJobs == 0) throw Error( + if (awake.empty() && maxBuildJobs == 0) throw Error( "unable to start any build; either increase `--max-jobs' " "or enable distributed builds"); assert(!awake.empty());