1
0
mirror of https://github.com/golang/go synced 2024-11-05 11:36:10 -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:
haya14busa 2017-03-10 20:12:44 +09:00 committed by Brad Fitzpatrick
parent c21bc47f89
commit 1f0f7f68c9

View File

@ -761,6 +761,7 @@ func findImportGoPath(pkgName string, symbols map[string]bool, filename string)
case loadExportsSem <- struct{}{}:
select {
case <-done:
return
default:
}
case <-done: