Skip to content

Commit

Permalink
ensure Loop() is started before feeding refresh chan
Browse files Browse the repository at this point in the history
  • Loading branch information
bcicen committed Mar 9, 2017
1 parent 2f17a9d commit ecc37a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockersource.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func NewDockerContainerSource() *DockerContainerSource {
containers: make(map[string]*Container),
needsRefresh: make(chan string, 60),
}
cm.refreshAll()
go cm.Loop()
cm.refreshAll()
go cm.watchEvents()
return cm
}
Expand Down

0 comments on commit ecc37a2

Please sign in to comment.