示例#1
0
文件: main.go 项目: cokeboL/GoWorld
func WaitStop() {
	exitCode := <-chAppStop

	Monitor.Stop()

	NetCore.StopTcpServer()

	Logger.Stop()

	Logger.Print("Server Stop, exitCode:", exitCode)

	os.Exit(0)
}
示例#2
0
文件: main.go 项目: cokeboL/ZIM
func WaitStop() {
	exitCode := <-chAppStop

	Monitor.Stop()

	NetCore.StopTcpServer()

	SigHandler.Stop()

	Logger.Stop()

	Logger.Println("[ShutDown] Server Stop, exitCode:", ErrConf.GetErrString(exitCode))

	os.Exit(0)
}