change shutdown order. (#4)

This commit is contained in:
Miroslav Šedivý 2022-07-28 12:19:58 +02:00 committed by GitHub
parent 472fd5f346
commit c725e96c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,26 +176,26 @@ func (c *serve) Start(cmd *cobra.Command) {
func (c *serve) Shutdown() {
var err error
err = c.managers.member.Disconnect()
c.logger.Err(err).Msg("member manager disconnect")
err = c.managers.desktop.Shutdown()
c.logger.Err(err).Msg("desktop manager shutdown")
err = c.managers.capture.Shutdown()
c.logger.Err(err).Msg("capture manager shutdown")
err = c.managers.webRTC.Shutdown()
c.logger.Err(err).Msg("webrtc manager shutdown")
err = c.managers.webSocket.Shutdown()
c.logger.Err(err).Msg("websocket manager shutdown")
err = c.managers.http.Shutdown()
c.logger.Err(err).Msg("http manager shutdown")
err = c.managers.plugins.Shutdown()
c.logger.Err(err).Msg("plugins manager shutdown")
err = c.managers.http.Shutdown()
c.logger.Err(err).Msg("http manager shutdown")
err = c.managers.webSocket.Shutdown()
c.logger.Err(err).Msg("websocket manager shutdown")
err = c.managers.webRTC.Shutdown()
c.logger.Err(err).Msg("webrtc manager shutdown")
err = c.managers.capture.Shutdown()
c.logger.Err(err).Msg("capture manager shutdown")
err = c.managers.desktop.Shutdown()
c.logger.Err(err).Msg("desktop manager shutdown")
err = c.managers.member.Disconnect()
c.logger.Err(err).Msg("member manager disconnect")
}
func (c *serve) Command(cmd *cobra.Command, args []string) {