فهرست منبع

Bugly异步造成定时器没有销毁问题

huangxiaoyue 1 سال پیش
والد
کامیت
c95b98de61

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnsweringView.cs

@@ -82,6 +82,8 @@ namespace GFGGame
             base.OnShown();
 
             bool result = await LeagueSproxy.ReqJoinAnswer();
+            if (!isShowing)
+                return;
             if (result)
             {
                 UpdateJoinList();

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueTeaPartyView.cs

@@ -267,6 +267,8 @@ namespace GFGGame
         private async void GetRoleContainerInfos()
         {
             bool result = await LeagueSproxy.GetRoleContainerInfos(RoleDataManager.roleId);
+            if (!isShowing)
+                return;
             if (result)
             {
                 UpDataOverTime();