Commit 0b766fc4 authored by suyanlong's avatar suyanlong

fixed bug

parent b587b9f6
Pipeline #8329 failed with stages
......@@ -31,8 +31,9 @@ func NewManager(clients []plugins.Client, cryptor txcrypto.Cryptor, logger logru
func (m *Manager) Start() error {
for _, appChain := range m.appChains {
a := appChain
m.g.Go(func() error {
return appChain.Start()
return a.Start()
})
}
return m.g.Wait()
......@@ -40,8 +41,9 @@ func (m *Manager) Start() error {
func (m *Manager) Stop() error {
for _, appChain := range m.appChains {
a := appChain
m.g.Go(func() error {
return appChain.Stop()
return a.Stop()
})
}
m.cancel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment