Ver Fonte

修复TCP一个bug

tanghai há 3 anos atrás
pai
commit
2e2a037c15
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Unity/Assets/Scripts/Core/Module/Network/TService.cs

+ 2 - 2
Unity/Assets/Scripts/Core/Module/Network/TService.cs

@@ -198,7 +198,7 @@ namespace ET
 						case TcpOp.StartSend:
 						{
 							TChannel tChannel = this.Get(result.ChannelId);
-							if (tChannel == null)
+							if (tChannel != null)
 							{
 								tChannel.StartSend();
 							}
@@ -207,7 +207,7 @@ namespace ET
 						case TcpOp.StartRecv:
 						{
 							TChannel tChannel = this.Get(result.ChannelId);
-							if (tChannel == null)
+							if (tChannel != null)
 							{
 								tChannel.StartRecv();
 							}