Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Fix goroutine thread sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
gconnell committed Nov 30, 2016
1 parent 7703f71 commit 9ccb527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ func (d *Env) removeOldFiles() {
func (d *Env) syncFiles() {
var wg sync.WaitGroup
for _, t := range d.threads {
t := t
wg.Add(1)
go func() {
t.SyncFiles()
Expand Down

0 comments on commit 9ccb527

Please sign in to comment.