优化登录、离线、服务器重启等会话连接问题

This commit is contained in:
huangxiaolei
2022-12-21 14:25:14 +08:00
parent a288892f26
commit bfff798470
14 changed files with 348 additions and 307 deletions

View File

@@ -24,6 +24,7 @@ func Run(ctx context.Context, configFile string) error {
connectManager := net.NewKcpConnectManager(messageQueue)
connectManager.Start()
defer connectManager.Stop()
go func() {
outputChan := connectManager.GetKcpEventOutputChan()