Fix deadlock when there are no modules
Change-Id: Ibfc1190f2b5ac3c3445d40f1b5dd0cd782e63dfd
This commit is contained in:
parent
c4b691f2fb
commit
11e3b0d000
1 changed files with 1 additions and 5 deletions
|
@ -977,8 +977,7 @@ func (c *Context) parallelVisitAllBottomUp(visit func(group *moduleGroup)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loop:
|
for count > 0 {
|
||||||
for {
|
|
||||||
select {
|
select {
|
||||||
case doneGroup := <-doneCh:
|
case doneGroup := <-doneCh:
|
||||||
for _, parent := range doneGroup.reverseDeps {
|
for _, parent := range doneGroup.reverseDeps {
|
||||||
|
@ -988,9 +987,6 @@ loop:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
count--
|
count--
|
||||||
if count == 0 {
|
|
||||||
break loop
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue