fix panic on already closed stats channel

This commit is contained in:
Bradley Cicenas 2017-01-29 03:39:53 +00:00
parent b8828437ce
commit 4b169d6a1b

View File

@ -33,7 +33,6 @@ func NewDocker(client *api.Client, id string) *Docker {
}()
go func() {
defer close(stats)
defer close(c.stream)
for s := range stats {
c.ReadCPU(s)