Update NetworkChannelHelper.cs

This commit is contained in:
ALEXTANG
2023-04-21 13:26:49 +08:00
parent 14abeb2427
commit b791c1a44d

View File

@@ -217,7 +217,7 @@ namespace GameLogic
return; return;
} }
Log.Info("Network channel '{0}' miss heart beat '{1}' times.", channel.Name, missCount.ToString()); Log.Fatal("Network channel '{0}' miss heart beat '{1}' times.", channel.Name, missCount.ToString());
if (missCount < 2) if (missCount < 2)
{ {
@@ -234,7 +234,7 @@ namespace GameLogic
return; return;
} }
Log.Info("Network channel '{0}' error, error code is '{1}', error message is '{2}'.", channel.Name, networkErrorCode.ToString(), errorMessage); Log.Fatal("Network channel '{0}' error, error code is '{1}', error message is '{2}'.", channel.Name, networkErrorCode.ToString(), errorMessage);
channel.Close(); channel.Close();
} }