mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
change shutdown order.
This commit is contained in:
parent
e045bd8a1e
commit
478984e944
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user