Skip to content

Commit

Permalink
Merge pull request gliderlabs#93 from raychaser/fix-go-func
Browse files Browse the repository at this point in the history
Undo change introduced in 07555c5
  • Loading branch information
progrium committed Apr 19, 2015
2 parents d428516 + b085bf9 commit 73304a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion logspout.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func main() {

for _, job := range router.Jobs.All() {
job := job
go log.Fatalf("%s ended: %s", job.Name(), job.Run())
go func() {
log.Fatalf("%s ended: %s", job.Name(), job.Run())
}()
}

select {}
Expand Down

0 comments on commit 73304a2

Please sign in to comment.