commit | 11e3b0d0006609e3835f4aa04f7cd7f6039239e8 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Feb 04 10:41:00 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Mar 04 13:27:20 2015 -0800 |
tree | c294d01da6c8470091b3083fcb15d95303bf00b4 | |
parent | c4b691f2fb3e4ecbdd10244e705098602c945533 [diff] [blame] |
Fix deadlock when there are no modules Change-Id: Ibfc1190f2b5ac3c3445d40f1b5dd0cd782e63dfd
diff --git a/context.go b/context.go index 9fea1db..da4643a 100644 --- a/context.go +++ b/context.go
@@ -977,8 +977,7 @@ } } -loop: - for { + for count > 0 { select { case doneGroup := <-doneCh: for _, parent := range doneGroup.reverseDeps { @@ -988,9 +987,6 @@ } } count-- - if count == 0 { - break loop - } } } }