mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
change shutdown order. (#4)
This commit is contained in:
parent
472fd5f346
commit
c725e96c90
32
cmd/serve.go
32
cmd/serve.go
@ -176,26 +176,26 @@ func (c *serve) Start(cmd *cobra.Command) {
|
|||||||
func (c *serve) Shutdown() {
|
func (c *serve) Shutdown() {
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
err = c.managers.member.Disconnect()
|
err = c.managers.http.Shutdown()
|
||||||
c.logger.Err(err).Msg("member manager disconnect")
|
c.logger.Err(err).Msg("http manager shutdown")
|
||||||
|
|
||||||
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.plugins.Shutdown()
|
err = c.managers.plugins.Shutdown()
|
||||||
c.logger.Err(err).Msg("plugins manager shutdown")
|
c.logger.Err(err).Msg("plugins manager shutdown")
|
||||||
|
|
||||||
err = c.managers.http.Shutdown()
|
err = c.managers.webSocket.Shutdown()
|
||||||
c.logger.Err(err).Msg("http manager 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) {
|
func (c *serve) Command(cmd *cobra.Command, args []string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user