Browse Source

【优化】解决断线后一直报错的问题

johnclot69 1 year ago
parent
commit
1f34b8988d
1 changed files with 4 additions and 21 deletions
  1. 4 21
      DotNet/Hotfix/Module/FastStream/FastStreamComponentSystem.cs

+ 4 - 21
DotNet/Hotfix/Module/FastStream/FastStreamComponentSystem.cs

@@ -72,28 +72,11 @@ namespace ET.Server
             if (player != null )
             {
                 MessageHelper.SendToClient(player, new BattleEventPush() { key = (ushort)BattlePushCnst.FastStreamPush, data = data});
-                // var gatemap = player.GetComponent<GateMapComponent>();
-                // if(gatemap == null)
-                // {
-                //     Log.Error($"player({usrid}) not entermap");
-                //     return;
-                // }
-                //
-                // var unitcomponet = gatemap.Scene.GetComponent<UnitComponent>();
-                // var unit = unitcomponet.GetChild<Unit>(usrid);
-                // if(unit != null)
-                // {
-                //     MessageHelper.SendToClient(unit, new BattleEventPush() { key = (ushort)BattlePushCnst.FastStreamPush, data = data});
-                // }
-                // else
-                // {
-                //     Log.Error($"unit({usrid}) not exist @scene");
-                // }
-            }
-            else
-            {
-                Log.Error($"Not found player({usrid}) @faststream data");
             }
+            // else
+            // {
+            //     Log.Error($"Not found player({usrid}) @faststream data");
+            // }
         }
 
         private static void OnSessionError(object sender, ErrorEventArgs e)