mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
fix panic on already closed stats channel
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user