Skip to content

Commit 09e8c63

Browse files
committed
Closes targets channel *after* being done writing to it
1 parent 579d209 commit 09e8c63

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

html-tool/main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,8 @@ func main() {
231231
targets <- &target{location, f}
232232
}
233233
p.Done()
234-
close(targets)
235-
236234
p.Wait()
237-
wg.Wait()
238235

236+
close(targets)
237+
wg.Wait()
239238
}

0 commit comments

Comments
 (0)