mirror of
https://github.com/golang/go
synced 2024-11-05 15:56:12 -07:00
imports: return when done channel is closed
Change-Id: I49317a947ec58572fd16078279678d4514cc2a4b Reviewed-on: https://go-review.googlesource.com/37919 Run-TryBot: Matt Layher <mdlayher@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
c21bc47f89
commit
1f0f7f68c9
@ -761,6 +761,7 @@ func findImportGoPath(pkgName string, symbols map[string]bool, filename string)
|
||||
case loadExportsSem <- struct{}{}:
|
||||
select {
|
||||
case <-done:
|
||||
return
|
||||
default:
|
||||
}
|
||||
case <-done:
|
||||
|
Loading…
Reference in New Issue
Block a user