Archived
2
0

change shutdown order.

This commit is contained in:
Miroslav Šedivý 2022-09-13 20:33:00 +02:00
parent e045bd8a1e
commit 478984e944

View File

@ -154,23 +154,23 @@ func (neko *Neko) Start() {
func (neko *Neko) Shutdown() { func (neko *Neko) Shutdown() {
var err error var err error
err = neko.broadcastManager.Shutdown() err = neko.server.Shutdown()
neko.logger.Err(err).Msg("broadcast manager shutdown") neko.logger.Err(err).Msg("server shutdown")
err = neko.desktopManager.Shutdown()
neko.logger.Err(err).Msg("desktop manager shutdown")
err = neko.captureManager.Shutdown()
neko.logger.Err(err).Msg("capture manager shutdown")
err = neko.webRTCManager.Shutdown()
neko.logger.Err(err).Msg("webrtc manager shutdown")
err = neko.webSocketHandler.Shutdown() err = neko.webSocketHandler.Shutdown()
neko.logger.Err(err).Msg("websocket handler shutdown") neko.logger.Err(err).Msg("websocket handler shutdown")
err = neko.server.Shutdown() err = neko.webRTCManager.Shutdown()
neko.logger.Err(err).Msg("server shutdown") neko.logger.Err(err).Msg("webrtc manager shutdown")
err = neko.captureManager.Shutdown()
neko.logger.Err(err).Msg("capture manager shutdown")
err = neko.desktopManager.Shutdown()
neko.logger.Err(err).Msg("desktop manager shutdown")
err = neko.broadcastManager.Shutdown()
neko.logger.Err(err).Msg("broadcast manager shutdown")
} }
func (neko *Neko) ServeCommand(cmd *cobra.Command, args []string) { func (neko *Neko) ServeCommand(cmd *cobra.Command, args []string) {