Parcourir la source

TChannel加个IsSending判断,防御一下

tanghai il y a 4 ans
Parent
commit
e6a14d1545
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      Unity/Assets/Mono/Module/NetworkTCP/TChannel.cs

+ 5 - 0
Unity/Assets/Mono/Module/NetworkTCP/TChannel.cs

@@ -298,6 +298,11 @@ namespace ET
 			{
 			{
 				return;
 				return;
 			}
 			}
+
+			if (this.isSending)
+			{
+				return;
+			}
 			
 			
 			while (true)
 			while (true)
 			{
 			{