Skip to content

Commit

Permalink
Close channel when done with it
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsteele committed May 15, 2014
1 parent c26e2a1 commit e57e27d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func main() {
close(tasks)
time.Sleep(time.Duration(2 * time.Second))
track <- empty{}
close(track)
h.Close()
log.Println("Scan complete.")

Expand Down

0 comments on commit e57e27d

Please sign in to comment.