mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
fix panic on already closed stats channel
This commit is contained in:
parent
b8828437ce
commit
4b169d6a1b
@ -33,7 +33,6 @@ func NewDocker(client *api.Client, id string) *Docker {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
defer close(stats)
|
|
||||||
defer close(c.stream)
|
defer close(c.stream)
|
||||||
for s := range stats {
|
for s := range stats {
|
||||||
c.ReadCPU(s)
|
c.ReadCPU(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user