Rollback stopping management client within engine stop (#204)

* start close handler when using console

* don't close management client within engine stop
This commit is contained in:
Maycon Santos
2022-01-25 11:18:01 +01:00
committed by GitHub
parent 0739038d51
commit 98dc5824ce
3 changed files with 8 additions and 8 deletions

View File

@ -96,13 +96,7 @@ func (e *Engine) Stop() error {
e.syncMsgMux.Lock()
defer e.syncMsgMux.Unlock()
err := e.mgmClient.Close()
if err != nil {
log.Errorf("failed closing engine's management client: %v", err)
return err
}
err = e.removeAllPeers()
err := e.removeAllPeers()
if err != nil {
return err
}