mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
ensure Loop() is started before feeding refresh chan
This commit is contained in:
parent
2f17a9d689
commit
ecc37a2f99
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user