Browse Source

该Entity已经包含组件判断。。

xyh1985 1 year ago
parent
commit
9c338c35a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Unity/Assets/Scripts/Codes/Hotfix/Client/Login/LoginHelper.cs

+ 1 - 1
Unity/Assets/Scripts/Codes/Hotfix/Client/Login/LoginHelper.cs

@@ -48,7 +48,7 @@ namespace ET.Client
                     Log.Error($"登陆game错误...errCode={g2CLoginGame.Error}");
                     return;
                 }
-                if (ConstValue.SessionTimeoutTime > 0)
+                if (ConstValue.SessionTimeoutTime > 0 && gameSession.GetComponent<SessionIdleCheckerComponent>() == null)
                 {
                     gameSession.AddComponent<SessionIdleCheckerComponent>();
                 }