Explorar o código

TChannel加个IsSending判断,防御一下

tanghai %!s(int64=4) %!d(string=hai) anos
pai
achega
e6a14d1545
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;
 			}
+
+			if (this.isSending)
+			{
+				return;
+			}
 			
 			while (true)
 			{