xy 12 hours ago
parent
commit
32047f1cf5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/game/agentManager/agentManager.go

+ 1 - 1
src/server/game/agentManager/agentManager.go

@@ -48,8 +48,8 @@ func CloseAgent(args []interface{}) {
 	// 清理已认证连接
 	for userID, a := range authedUsers {
 		//设置为离线状态
-		common.UpdateUserOnlineStatus(0, userID)
 		if a == agent {
+			common.UpdateUserOnlineStatus(0, userID)
 			// a.SetUserData(&common.UserData{
 			// 	Id:       userID,
 			// 	Nickname: userID,